The Docker Book by James Turnbull

The Docker Book by James Turnbull

Author:James Turnbull
Language: eng
Format: epub, pdf
ISBN: 9780988820203
Publisher: James Turnbull
Published: 2014-07-13T16:00:00+00:00


We can also specify the --link command multiple times to link to multiple containers.

Tip Container linking currently only works on a single Docker host. You can't link between containers on separate Docker hosts. For multi-host networking you'll need to use Docker Networking. Or Docker Swarm, which we talk about in Chapter 7, which will allow you to do some orchestration between Docker daemons on different hosts.

Finally, instead of running the container as a daemon, we've launched a shell so we see how our containers are now linked. Docker links populate information about the service container in two places:

The /etc/hosts file.

Environmental variables that contain connection information.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.