Skip to content

Instantly share code, notes, and snippets.

@demophoon
Created July 10, 2014 20:44
Show Gist options
  • Save demophoon/bd9f901f6f06725ce045 to your computer and use it in GitHub Desktop.
Save demophoon/bd9f901f6f06725ce045 to your computer and use it in GitHub Desktop.
Docker Multi-container Linking
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