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

Commit 905ec92

Browse files
authored
add info about network aliases
Update documentation for #3090
1 parent f9e27f7 commit 905ec92

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)