1
0
mirror of https://github.com/docker/cli.git synced 2026-01-22 03:22:01 +03:00

Update /etc/hosts when linked container is restarted

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
Upstream-commit: bbea6aa42d
Component: cli
This commit is contained in:
Victor Vieux
2014-07-14 23:19:37 +00:00
committed by Tibor Vass
parent 3961f38c94
commit 48077e3b5b

View File

@@ -432,6 +432,9 @@ mechanism to communicate with a linked container by its alias:
$ docker run -d --name servicename busybox sleep 30
$ docker run -i -t --link servicename:servicealias busybox ping -c 1 servicealias
If you restart the source container (`servicename` in this case), the recipient
container's `/etc/hosts` entry will be automatically updated.
## VOLUME (Shared Filesystems)
-v=[]: Create a bind mount with: [host-dir]:[container-dir]:[rw|ro].