oef/bash/wait_until_up.bash

8 lines
179 B
Bash
Executable file

#!/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