1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fixed parent-child relationship description

"db" is the parent image, and "web" links to it as the child image. There was a typo in the document which reversed the relation.
This commit is contained in:
Roland Huß 2014-07-23 10:23:14 +02:00
parent 885cda1ae2
commit 0a4b39b6a4

View file

@ -162,8 +162,8 @@ containers also shows `web/db` in the `NAMES` column. This tells us that the
`web` container is linked to the `db` container in a parent/child relationship.
So what does linking the containers do? Well we've discovered the link creates
a parent-child relationship between the two containers. The parent container,
here `web`, can access information on the child container `db`. To do this
a parent-child relationship between the two containers. The child container,
here `web`, can access information on the parent container `db`. To do this
Docker creates a secure tunnel between the containers without the need to
expose any ports externally on the container. You'll note when we started the
`db` container we did not use either of the `-P` or `-p` flags. As we're