simplify
This commit is contained in:
1 parent
0fb8d3d054
commit
f7c1c2a1e0
1 file changed
+3
-3
+3
-3
@@ -15,8 +15,8 @@ will register it in DNS. For example:
|
|||||||
```bash
|
```bash
|
||||||
$ weave launch
|
$ weave launch
|
||||||
$ weave launch-dns 10.1.0.2/16
|
$ weave launch-dns 10.1.0.2/16
|
||||||
$ weave run 10.1.1.25/24 -ti -h pingme.weave.local ubuntu /bin/bash
|
$ weave run 10.1.1.25/24 -ti -h pingme.weave.local ubuntu
|
||||||
$ shell1=$(weave run 10.1.1.26/24 -ti -h ubuntu.weave.local ubuntu /bin/bash)
|
$ shell1=$(weave run 10.1.1.26/24 -ti -h ubuntu.weave.local ubuntu)
|
||||||
$ docker attach $shell1
|
$ docker attach $shell1
|
||||||
|
|
||||||
# ping pingme.weave.local
|
# ping pingme.weave.local
|
||||||
@@ -42,7 +42,7 @@ make it use weaveDNS:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ dns_ip=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' weavedns)
|
$ dns_ip=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' weavedns)
|
||||||
$ shell2=$(docker run --dns=$dns_ip -ti ubuntu /bin/bash)
|
$ shell2=$(docker run --dns=$dns_ip -ti ubuntu)
|
||||||
$ weave attach 10.1.1.27/24 $shell2
|
$ weave attach 10.1.1.27/24 $shell2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user