Skip to content

Instantly share code, notes, and snippets.

@fntlnz
Created May 20, 2015 09:27
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 fntlnz/8ad0460e3db1b402ed30 to your computer and use it in GitHub Desktop.
Save fntlnz/8ad0460e3db1b402ed30 to your computer and use it in GitHub Desktop.
Wait for ready service in docker container
until nc -z $(docker inspect --format='{{.NetworkSettings.IPAddress}}' $CONTAINER_NAME) $SERVICE_PORT; do echo "waiting for service in container..."; sleep 0.5; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment