Skip to content

Instantly share code, notes, and snippets.

@michaellihs
Last active November 14, 2017 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellihs/9130d1db63ea973b9f1b0572b6d3aca2 to your computer and use it in GitHub Desktop.
Save michaellihs/9130d1db63ea973b9f1b0572b6d3aca2 to your computer and use it in GitHub Desktop.
Docker Cheat Sheet

Wait until container became healthy

until [[ "`docker inspect -f {{.State.Health.Status}} gitlab`" = "healthy" ]]; do
    echo 'waiting for container to be healthy...'
    sleep 5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment