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

Commit

Permalink
Merge pull request #3840 from mastappl/patch-1
Browse files Browse the repository at this point in the history
website: add info about network aliases
  • Loading branch information
bboreham authored Jan 18, 2021
2 parents e91900c + 905ec92 commit b04217d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions site/tasks/weavedns/weavedns.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ root@ubuntu:/# ping pingme
...
```

Moreover, weaveDNS always register all network aliases (--network-alias option to docker run).

```
host1$ docker run --network weave --network-alias pingme --network-alias pingme2 -dti weaveworks/ubuntu
host1$ docker run --network weave --hostname=ubuntu.weave.local -ti weaveworks/ubuntu
root@ubuntu:/# ping pingme
...
root@ubuntu:/# ping pingme2
...
```

> **Note** If both hostname and container name are specified at
the same time, the hostname takes precedence. In this circumstance, if
the hostname is not in the weaveDNS domain, the container is *not*
Expand Down

0 comments on commit b04217d

Please sign in to comment.