oef/bash/wait_until_up.bash

9 lines
179 B
Bash
Raw Normal View History

2020-02-08 08:55:44 +01:00
#!/bin/bash
until [ "`/usr/bin/docker inspect -f {{.State.Running}} $1`"=="true" ]; do
echo "Waiting for $1 to go up..."
sleep 0.1;
done;
# docker logs --tail 100 -f $1