rename proxy-(env|config) to (env|config)
Keep error message to stderr, as the proxy should be launched with 'weave launch'. 'proxy-(env|config)' are kept with a deprecation warning, for a while.
This commit is contained in:
1 parent
5c7763b075
commit
5c44f74475
5 files changed
+25
-20
No files matched your search
+2
-2
@@ -143,9 +143,9 @@ Let's begin by configuring weave's allocator to manage multiple
|
||||
subnets:
|
||||
|
||||
host1$ weave launch -iprange 10.2.0.0/16 -ipsubnet 10.2.1.0/24
|
||||
host1$ eval $(weave proxy-env)
|
||||
host1$ eval $(weave env)
|
||||
host2$ weave launch -iprange 10.2.0.0/16 -ipsubnet 10.2.1.0/24 $HOST1
|
||||
host2$ eval $(weave proxy-env)
|
||||
host2$ eval $(weave env)
|
||||
|
||||
This delegates the entire 10.2.0.0/16 subnet to weave, and instructs
|
||||
it to allocate from 10.2.1.0/24 within that if no specific subnet is
|
||||
|
||||
+3
-3
@@ -49,13 +49,13 @@ All docker commands can be run via the proxy, so it is safe to adjust
|
||||
your `DOCKER_HOST` to point at the proxy. Weave provides a convenient
|
||||
command for this:
|
||||
|
||||
host1$ eval "$(weave proxy-env)"
|
||||
host1$ eval "$(weave env)"
|
||||
host1$ docker ps
|
||||
...
|
||||
|
||||
Alternatively, the proxy host can be set on a per-command basis with
|
||||
|
||||
host1$ docker $(weave proxy-config) ps
|
||||
host1$ docker $(weave config) ps
|
||||
|
||||
The proxy can be stopped independently with
|
||||
|
||||
@@ -167,7 +167,7 @@ with
|
||||
|
||||
$ mkdir -pv ~/.docker
|
||||
$ cp -v {ca,cert,key}.pem ~/.docker
|
||||
$ eval "$(weave proxy-env)"
|
||||
$ eval "$(weave env)"
|
||||
$ export DOCKER_TLS_VERIFY=1
|
||||
$ docker version
|
||||
...
|
||||
|
||||
+3
-3
@@ -33,13 +33,13 @@ Weave Docker API proxy via `launch`:
|
||||
|
||||
```bash
|
||||
host1$ weave launch
|
||||
host1$ eval $(weave proxy-env)
|
||||
host1$ eval $(weave env)
|
||||
```
|
||||
or independently via `launch-dns`:
|
||||
|
||||
```bash
|
||||
host1$ weave launch-router && weave launch-dns && weave launch-proxy
|
||||
host1$ eval $(weave proxy-env)
|
||||
host1$ eval $(weave env)
|
||||
```
|
||||
|
||||
The first form is more convenient, however you can only pass weaveDNS
|
||||
@@ -128,7 +128,7 @@ container, this time on the 2nd host, and then run some ping tests...
|
||||
|
||||
```bash
|
||||
host2$ weave launch
|
||||
host2$ eval $(weave proxy-env)
|
||||
host2$ eval $(weave env)
|
||||
host2$ docker run -dti --name=pingme ubuntu
|
||||
|
||||
root@ubuntu:/# ping -nq -c 1 pingme
|
||||
|
||||
Reference in new issue
Block a user