Created
July 10, 2014 20:44
-
-
Save demophoon/bd9f901f6f06725ce045 to your computer and use it in GitHub Desktop.
Docker Multi-container Linking
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
docker run -itd --name="database" $DOCKER_DB_CONTAINER | |
docker run -itd --link=["database:db"] --port 8080:80 $DOCKER_APP_CONTAINER # I cannot remember if the port sharing is right on this line or not |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment