[proxy] documenting -L option

This commit is contained in:
Paul Bellamy committed 2015-06-10 12:13:51 +01:00
1 parent 1ac5d4fe98
commit 4a7d4d3555
2 files changed
+10 -5

No files matched your search

+8 -4
View File
@@ -35,9 +35,13 @@ argument, e.g.
host1$ weave launch-proxy -H tcp://127.0.0.1:4243
The proxy listens on port 12375, on all network interfaces. All docker
commands can be run via the proxy, so it is safe to globally adjust
your `DOCKER_HOST` to point at the proxy, e.g.
By default, the proxy listens on port 12375, on all network
interfaces. This can be adjusted with the `-L` argument, e.g.
host1$ weave launch-proxy -L 127.0.0.1:9999
All docker commands can be run via the proxy, so it is safe to
globally adjust your `DOCKER_HOST` to point at the proxy, e.g.
host1$ export DOCKER_HOST=tcp://localhost:12375
host1$ docker ps
@@ -46,7 +50,7 @@ your `DOCKER_HOST` to point at the proxy, e.g.
If you are working with a remote docker daemon, then `localhost` in
the above needs to be replaced with the docker daemon host, and any
firewalls inbetween need to be configured to permit access to
port 12375.
the proxy port.
## <a name="usage"></a>Usage
+2 -1
View File
@@ -28,7 +28,7 @@ usage() {
echo "weave launch [-password <password>] [-nickname <nickname>] [-nodiscovery]"
echo " [-iprange <cidr>] <peer> ..."
echo "weave launch-dns <cidr>"
echo "weave launch-proxy [-H <docker_endpoint>] [--with-dns] [--with-ipam]"
echo "weave launch-proxy [-H <docker_endpoint>] [-L <address>] [--with-dns] [--with-ipam]"
echo "weave connect [--replace] [<peer> ...]"
echo "weave forget <peer> ..."
echo "weave run [--with-dns] [<cidr> ...] <docker run args> ..."
@@ -51,6 +51,7 @@ usage() {
echo "where <peer> = <ip_address_or_fqdn>[:<port>]"
echo " <cidr> = <ip_address>/<routing_prefix_length>"
echo " <peer_id> = <nickname> or weave internal peer ID"
echo " <address> = [<ip_address>]:<port>"
exit 1
}