Merge branch '1.4'
This commit is contained in:
commit
9336cc4121
1 file changed
+5
-13
+5
-13
@@ -14,12 +14,6 @@ The Weave Net plugin runs automatically when you `weave launch`. You
|
|||||||
must still tell the weave peers to connect to one another, either via
|
must still tell the weave peers to connect to one another, either via
|
||||||
`weave launch` or `weave connect`.
|
`weave launch` or `weave connect`.
|
||||||
|
|
||||||
Note that the plugin container (`weaveplugin`) is run with
|
|
||||||
`--restart=always`, so that it is there after a restart or reboot. If
|
|
||||||
you remove this container (e.g. using `weave reset`) before removing
|
|
||||||
all endpoints created using `--net=weave`, Docker can
|
|
||||||
[hang](https://github.com/docker/libnetwork/issues/813).
|
|
||||||
|
|
||||||
## Starting a container
|
## Starting a container
|
||||||
|
|
||||||
$ docker run --net=weave -ti ubuntu
|
$ docker run --net=weave -ti ubuntu
|
||||||
@@ -90,13 +84,11 @@ route, add the `--no-multicast-route` flag to `weave launch-plugin`.
|
|||||||
|
|
||||||
## Restarting
|
## Restarting
|
||||||
|
|
||||||
We start the plugin with a restart policy, because Docker attempts to
|
We start the plugin with a policy of `--restart=always`, so that it is
|
||||||
recreate networks on startup. If it isn't started automatically by
|
there after a restart or reboot. If you remove this container
|
||||||
Docker with a restart policy, it's not possible to start it manually
|
(e.g. using `weave reset`) before removing all endpoints created using
|
||||||
because Docker is blocked.
|
`--net=weave`, Docker can
|
||||||
|
[hang](https://github.com/docker/libnetwork/issues/813).
|
||||||
Specifically, we use the policy `on-failure:3`, so Docker will give up
|
|
||||||
after three attempts if something just isn't working.
|
|
||||||
|
|
||||||
[readme]: https://github.com/weaveworks/weave/blob/master/README.md#installation
|
[readme]: https://github.com/weaveworks/weave/blob/master/README.md#installation
|
||||||
[service-discovery]: weavedns.html
|
[service-discovery]: weavedns.html
|
||||||
|
|||||||
Reference in new issue
Block a user