take advantage of recent features in proxy example
This commit is contained in:
1 parent
0452076ebc
commit
ae5c2dab86
1 file changed
+7
-8
+7
-8
@@ -129,7 +129,7 @@ will not be registered in weaveDNS.
|
|||||||
Here's a complete example of using weave proxies configured with
|
Here's a complete example of using weave proxies configured with
|
||||||
[automatic IP address assignment](#ipam) and
|
[automatic IP address assignment](#ipam) and
|
||||||
[automatic discovery](#dns) to start containers on two hosts such that
|
[automatic discovery](#dns) to start containers on two hosts such that
|
||||||
they can reach each other by name.
|
one can reach the other by name.
|
||||||
|
|
||||||
First, let us start weave, weaveDNS and the proxy, and set DOCKER_HOST
|
First, let us start weave, weaveDNS and the proxy, and set DOCKER_HOST
|
||||||
to point at the latter:
|
to point at the latter:
|
||||||
@@ -144,15 +144,14 @@ to point at the latter:
|
|||||||
host2$ weave launch-proxy --with-ipam
|
host2$ weave launch-proxy --with-ipam
|
||||||
host2$ eval "$(weave proxy-env)"
|
host2$ eval "$(weave proxy-env)"
|
||||||
|
|
||||||
Now let us start a couple of containers, and ping one from the other,
|
Now let us start a named container on one host, and ping it, by name,
|
||||||
by name.
|
from a container on the other host.
|
||||||
|
|
||||||
host1$ docker run -h pingme.weave.local -dti ubuntu
|
host1$ docker run --name=pingme -dti ubuntu
|
||||||
|
|
||||||
host2$ docker run -h pinger.weave.local -ti ubuntu
|
host2$ docker run -ti ubuntu ping pingme
|
||||||
root@pinger:/# ping pingme
|
PING pingme.weave.local (10.128.0.2) 56(84) bytes of data.
|
||||||
PING pingme.weave.local (10.2.3.1) 56(84) bytes of data.
|
64 bytes from pingme.weave.local (10.128.0.2): icmp_seq=1 ttl=64 time=0.047 ms
|
||||||
64 bytes from pingme.weave.local (10.2.3.1): icmp_seq=1 ttl=64 time=0.047 ms
|
|
||||||
...
|
...
|
||||||
|
|
||||||
## <a name="tls"></a>Securing the docker communication with TLS
|
## <a name="tls"></a>Securing the docker communication with TLS
|
||||||
|
|||||||
Reference in new issue
Block a user