Skip to content

Instantly share code, notes, and snippets.

@fntlnz
Created May 20, 2015 09:27
Show Gist options
  • 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