fixed formatting for wp and spellcheck
This commit is contained in:
1 parent
d68c1a8187
commit
b3b93b28df
37 files changed
+283
-120
No files matched your search
+48
-25
@@ -19,7 +19,9 @@ layout: default
|
||||
|
||||
Check the version of Weave Net you are running using:
|
||||
|
||||
weave version
|
||||
~~~bash
|
||||
weave version
|
||||
~~~
|
||||
|
||||
If it is not the latest version, as shown in the list of
|
||||
[releases](https://github.com/weaveworks/weave/releases), then it is
|
||||
@@ -28,7 +30,9 @@ recommended you upgrade using the
|
||||
|
||||
To check the Weave Net container logs:
|
||||
|
||||
docker logs weave
|
||||
~~~bash
|
||||
docker logs weave
|
||||
~~~
|
||||
|
||||
A reasonable amount of information, and all errors, get logged there.
|
||||
|
||||
@@ -45,7 +49,7 @@ capture and analysis tools, such as tcpdump and wireshark, to the
|
||||
|
||||
A status summary can be obtained using `weave status`:
|
||||
|
||||
````
|
||||
~~~bash
|
||||
$ weave status
|
||||
|
||||
Version: 1.1.0
|
||||
@@ -76,7 +80,7 @@ $ weave status
|
||||
Service: plugin
|
||||
DriverName: weave
|
||||
|
||||
````
|
||||
~~~
|
||||
|
||||
The terms used here are explained further at
|
||||
[How Weave Net Works](/site/router-topology/overview.md).
|
||||
@@ -93,7 +97,7 @@ can be overridden by using the `--nickname` argument at `weave
|
||||
launch`.
|
||||
|
||||
* **Encryption** - indicates whether
|
||||
[encryption](/site/encryption/crypto-overview) is in use for communication
|
||||
[encryption](/site/encryption/crypto-overview.md) is in use for communication
|
||||
between peers.
|
||||
|
||||
* **PeerDiscovery** - indicates whether
|
||||
@@ -126,17 +130,16 @@ in both directions. Weave Net routers check this regularly with
|
||||
heartbeats. Failed connections are automatically retried, with an
|
||||
exponential back-off.
|
||||
|
||||
Detailed information on the local Weave Net router's connections can be
|
||||
obtained using `weave status connections`:
|
||||
To view detailed information on the local Weave Net router's type `weave status connections`:
|
||||
|
||||
````
|
||||
~~~bash
|
||||
$ weave status connections
|
||||
<- 192.168.48.12:33866 established unencrypted fastdp 7e:21:4a:70:2f:45(host2)
|
||||
<- 192.168.48.13:60773 pending encrypted fastdp 7e:ae:cd:d5:23:8d(host3)
|
||||
-> 192.168.48.14:6783 retrying dial tcp4 192.168.48.14:6783: no route to host
|
||||
-> 192.168.48.15:6783 failed dial tcp4 192.168.48.15:6783: no route to host, retry: 2015-08-06 18:55:38.246910357 +0000 UTC
|
||||
-> 192.168.48.16:6783 connecting
|
||||
````
|
||||
~~~
|
||||
|
||||
The columns are as follows:
|
||||
|
||||
@@ -160,7 +163,7 @@ The columns are as follows:
|
||||
Detailed information on peers can be obtained with `weave status
|
||||
peers`:
|
||||
|
||||
````
|
||||
~~~bash
|
||||
$ weave status peers
|
||||
ce:31:e0:06:45:1a(host1)
|
||||
<- 192.168.48.12:39634 ea:2d:b2:e6:e4:f5(host2) established
|
||||
@@ -171,7 +174,7 @@ ea:2d:b2:e6:e4:f5(host2)
|
||||
ee:38:33:a7:d9:71(host3)
|
||||
-> 192.168.48.12:6783 ea:2d:b2:e6:e4:f5(host2) established
|
||||
-> 192.168.48.11:6783 ce:31:e0:06:45:1a(host1) established
|
||||
````
|
||||
~~~
|
||||
|
||||
This lists all peers known to this router, including itself. Each
|
||||
peer is shown with its name and nickname, then each line thereafter
|
||||
@@ -180,12 +183,12 @@ address and port number of the connection. In the above example,
|
||||
`host3` has connected to `host1` at `192.168.48.11:6783`; `host1` sees
|
||||
the `host3` end of the same connection as `192.168.48.13:49619`.
|
||||
|
||||
### <a name="weave-status-dns"></a>List DNS Entries
|
||||
### <a name="weave-status-dns"></a>Listing DNS Entries
|
||||
|
||||
Detailed information on DNS registrations can be obtained with `weave
|
||||
status dns`:
|
||||
|
||||
````
|
||||
~~~bash
|
||||
$ weave status dns
|
||||
one 10.32.0.1 eebd81120ee4 4a:0f:f6:ec:1c:93
|
||||
one 10.43.255.255 4fcec78d2a9b 66:c4:47:c6:65:bf
|
||||
@@ -196,7 +199,7 @@ three 10.40.0.2 8a9c2e2ef00f ba:98:d0:37:4f:1c
|
||||
two 10.32.0.2 83689b8f34e0 4a:0f:f6:ec:1c:93
|
||||
two 10.44.0.0 7edc306cb668 66:c4:47:c6:65:bf
|
||||
two 10.40.0.1 68a5e9c2641b ba:98:d0:37:4f:1c
|
||||
````
|
||||
~~~
|
||||
|
||||
The columns are as follows:
|
||||
|
||||
@@ -205,9 +208,11 @@ The columns are as follows:
|
||||
* Registering entity identifier (typically a container ID)
|
||||
* Name of peer from which the registration originates
|
||||
|
||||
### <a name="weave-report"></a>JSON Report
|
||||
### <a name="weave-report"></a>Producing a JSON Report
|
||||
|
||||
$ weave report
|
||||
~~~bash
|
||||
$ weave report
|
||||
~~~
|
||||
|
||||
Produces a comprehensive dump of the internal state of the router,
|
||||
IPAM and DNS services in JSON format, including all the information
|
||||
@@ -215,27 +220,35 @@ available from the `weave status` commands. You can also supply a
|
||||
Golang text template to `weave report` in a similar fashion to `docker
|
||||
inspect`:
|
||||
|
||||
$ weave report -f {% raw %}'{{.DNS.Domain}}'{% endraw %}
|
||||
weave.local.
|
||||
~~~bash
|
||||
$ weave report -f {% raw %}'{{.DNS.Domain}}'{% endraw %} weave.local.
|
||||
~~~
|
||||
|
||||
Weave Net adds a template function, `json`, which can be applied to get
|
||||
results in JSON format.
|
||||
|
||||
~~~bash
|
||||
$ weave report -f {% raw %}'{{json .DNS}}'{% endraw %}
|
||||
{% raw %}{"Domain":"weave.local.","Upstream":["8.8.8.8","8.8.4.4"],"Address":"172.17.0.1:53","TTL":1,"Entries":null}{% endraw %}
|
||||
~~~
|
||||
|
||||
### <a name="list-attached-containers"></a>List Attached Containers
|
||||
### <a name="list-attached-containers"></a>Listing Attached Containers
|
||||
|
||||
~~~bash
|
||||
weave ps
|
||||
~~~
|
||||
|
||||
weave ps
|
||||
|
||||
Produces a list of all containers running on this host that are
|
||||
connected to the Weave network, like this:
|
||||
|
||||
~~~bash
|
||||
weave:expose 7a:c4:8b:a1:e6:ad 10.2.5.2/24
|
||||
b07565b06c53 ae:e3:07:9c:8c:d4
|
||||
5245643870f1 ce:15:34:a9:b5:6d 10.2.5.1/24
|
||||
e32a7d37a93a 7a:61:a2:49:4b:91 10.2.8.3/24
|
||||
caa1d4ee2570 ba:8c:b9:dc:e1:c9 10.2.1.1/24 10.2.2.1/24
|
||||
~~~
|
||||
|
||||
On each line are the container ID, its MAC address, then the list of
|
||||
IP address/routing prefix length ([CIDR
|
||||
@@ -246,9 +259,11 @@ displays the Weave bridge MAC and any IP addresses added to it via the
|
||||
|
||||
You can also supply a list of container IDs/names to `weave ps`, like this:
|
||||
|
||||
~~~bash
|
||||
$ weave ps able baker
|
||||
able ce:15:34:a9:b5:6d 10.2.5.1/24
|
||||
baker 7a:61:a2:49:4b:91 10.2.8.3/24
|
||||
~~~
|
||||
|
||||
## <a name="stop"></a>Stopping Weave Net
|
||||
|
||||
@@ -256,11 +271,15 @@ To stop Weave Net, if you have configured your environment to use the
|
||||
Weave Docker API Proxy, e.g. by running `eval $(weave env)` in your
|
||||
shell, you must first restore the environment using:
|
||||
|
||||
~~~bash
|
||||
eval $(weave env --restore)
|
||||
~~~
|
||||
|
||||
Then run:
|
||||
|
||||
~~~bash
|
||||
weave stop
|
||||
~~~
|
||||
|
||||
Note that this leaves the local application container network intact.
|
||||
Containers on the local host can continue to communicate, whereas
|
||||
@@ -270,7 +289,9 @@ export/import, is disrupted but resumes once Weave is relaunched.
|
||||
To stop Weave Net and to completely remove all traces of the Weave network on
|
||||
the local host, run:
|
||||
|
||||
~~~bash
|
||||
weave reset
|
||||
~~~
|
||||
|
||||
Any running application containers permanently lose connectivity
|
||||
with the Weave network and will have to be restarted in order to
|
||||
@@ -278,11 +299,11 @@ re-connect.
|
||||
|
||||
## <a name="reboots"></a>Reboots
|
||||
|
||||
The router and proxy containers do not have Docker restart policies
|
||||
set, because the process of getting everything re-started and
|
||||
re-connected via restart policies is not entirely reliable. Until that
|
||||
changes, we recommend you create appropriate startup scripts to launch
|
||||
Weave and run application containers from
|
||||
because the process of getting everything re-started and
|
||||
re-connected via restart policies is not entirely reliable, the router and
|
||||
proxy containers do not have Docker restart policies
|
||||
set. Until that changes, we recommend that you create appropriate startup scripts to launch
|
||||
Weave Net and run application containers from
|
||||
[your favourite process manager](/site/systemd.md).
|
||||
|
||||
If you are shutting down or restarting a host deliberately, run `weave
|
||||
@@ -298,9 +319,11 @@ Snapshot releases are published at times to provide previews of new
|
||||
features, assist in the validation of bug fixes, etc. One can install the
|
||||
latest snapshot release using:
|
||||
|
||||
~~~bash
|
||||
sudo curl -L git.io/weave-snapshot -o /usr/local/bin/weave
|
||||
sudo chmod a+x /usr/local/bin/weave
|
||||
weave setup
|
||||
~~~
|
||||
|
||||
Snapshot releases report the script version as "(unreleased version)",
|
||||
and the container image versions as git hashes.
|
||||
|
||||
Reference in new issue
Block a user