Created
April 22, 2016 05:21
-
-
Save agritsik/4ad0603a41365a83230a3ddd9a1d5f4b to your computer and use it in GitHub Desktop.
How to wait for another docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# note, netcat utility should be installed in docker container | |
while ! nc -z DB 3306; do sleep 3; done | |
# DB is available here, so we can start our applicaiton | |
# java -jar /app.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment