Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit b04217d

Browse files
authored
Merge pull request #3840 from mastappl/patch-1
website: add info about network aliases
2 parents e91900c + 905ec92 commit b04217d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

site/tasks/weavedns/weavedns.md

+11
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ root@ubuntu:/# ping pingme
3434
...
3535
```
3636

37+
Moreover, weaveDNS always register all network aliases (--network-alias option to docker run).
38+
39+
```
40+
host1$ docker run --network weave --network-alias pingme --network-alias pingme2 -dti weaveworks/ubuntu
41+
host1$ docker run --network weave --hostname=ubuntu.weave.local -ti weaveworks/ubuntu
42+
root@ubuntu:/# ping pingme
43+
...
44+
root@ubuntu:/# ping pingme2
45+
...
46+
```
47+
3748
> **Note** If both hostname and container name are specified at
3849
the same time, the hostname takes precedence. In this circumstance, if
3950
the hostname is not in the weaveDNS domain, the container is *not*

0 commit comments

Comments
 (0)