Use our own ubuntu image

This commit is contained in:
Bryan Boreham committed 2016-06-15 13:47:20 +01:00
1 parent 3dd7e13cc0
commit a4f3e763bb
16 files changed
+47 -39

No files matched your search

@@ -37,7 +37,7 @@ For example, you can launch the proxy using all three flags, as follows:
After launching the Weave Net proxy with these flags, running a container named `aws-12798186823-foo` without labels results in weaveDNS registering the hostname `my-app-foo` and not `aws-12798186823-foo`.
host1$ docker run -ti --name=aws-12798186823-foo ubuntu ping my-app-foo
host1$ docker run -ti --name=aws-12798186823-foo weaveworks/ubuntu ping my-app-foo
PING my-app-foo.weave.local (10.32.0.2) 56(84) bytes of data.
64 bytes from my-app-foo.weave.local (10.32.0.2): icmp_seq=1 ttl=64 time=0.027 ms
64 bytes from my-app-foo.weave.local (10.32.0.2): icmp_seq=2 ttl=64 time=0.067 ms
@@ -45,7 +45,7 @@ After launching the Weave Net proxy with these flags, running a container named
Also, running a container named `foo` with the label
`hostname-label=aws-12798186823-foo` leads to the same hostname registration.
host1$ docker run -ti --name=foo --label=hostname-label=aws-12798186823-foo ubuntu ping my-app-foo
host1$ docker run -ti --name=foo --label=hostname-label=aws-12798186823-foo weaveworks/ubuntu ping my-app-foo
PING my-app-foo.weave.local (10.32.0.2) 56(84) bytes of data.
64 bytes from my-app-foo.weave.local (10.32.0.2): icmp_seq=1 ttl=64 time=0.031 ms
64 bytes from my-app-foo.weave.local (10.32.0.2): icmp_seq=2 ttl=64 time=0.042 ms
+4 -4
View File
@@ -8,16 +8,16 @@ If [automatic IP address allocation](/site/ipam.md) is enabled in Weave Net (by
then containers started via the proxy are automatically assigned an IP address, *without having to specify any
special environment variables or any other options*.
host1$ docker run -ti ubuntu
host1$ docker run -ti weaveworks/ubuntu
To use a specific subnet, you can pass a `WEAVE_CIDR` to the container, for example:
host1$ docker run -ti -e WEAVE_CIDR=net:10.32.2.0/24 ubuntu
host1$ docker run -ti -e WEAVE_CIDR=net:10.32.2.0/24 weaveworks/ubuntu
To start a container without connecting it to the Weave network, pass
`WEAVE_CIDR=none`, for example:
host1$ docker run -ti -e WEAVE_CIDR=none ubuntu
host1$ docker run -ti -e WEAVE_CIDR=none weaveworks/ubuntu
###Disabling Automatic IP Address Allocation
@@ -33,7 +33,7 @@ Containers started with a `WEAVE_CIDR` environment variable are handled as befor
To automatically assign an address in this mode, start the
container with a blank `WEAVE_CIDR`, for example:
host1$ docker run -ti -e WEAVE_CIDR="" ubuntu
host1$ docker run -ti -e WEAVE_CIDR="" weaveworks/ubuntu
**See Also**
@@ -7,7 +7,7 @@ menu_order: 50
If you don't want to use the proxy, you can also launch
containers on to the Weave network using `weave run`:
$ weave run -ti ubuntu
$ weave run -ti weaveworks/ubuntu
The arguments after `run` are passed through to `docker run`. Therefore you
can freely specify whatever Docker options you need.
@@ -17,14 +17,14 @@ this example, it obtains an automatically allocated IP.
You can specify IP addresses manually instead:
$ weave run 10.2.1.1/24 -ti ubuntu
$ weave run 10.2.1.1/24 -ti weaveworks/ubuntu
`weave run` rewrites `/etc/hosts` in the same way
[the proxy does](/site/weave-docker-api/name-resolution-proxy.md). If you need to keep
the original file, specify `--no-rewrite-hosts` when running
the container:
$ weave run --no-rewrite-hosts 10.2.1.1/24 -ti ubuntu
$ weave run --no-rewrite-hosts 10.2.1.1/24 -ti weaveworks/ubuntu
There are some limitations to starting containers using `weave run`:
+3 -3
View File
@@ -16,17 +16,17 @@ Weave network.
To create and start a container via the Weave Net proxy run:
host1$ docker run -ti ubuntu
host1$ docker run -ti weaveworks/ubuntu
or, equivalently run:
host1$ docker create -ti --name=foo ubuntu
host1$ docker create -ti --name=foo weaveworks/ubuntu
host1$ docker start foo
Specific IP addresses and networks can be supplied in the `WEAVE_CIDR`
environment variable, for example:
host1$ docker run -e WEAVE_CIDR=10.2.1.1/24 -ti ubuntu
host1$ docker run -e WEAVE_CIDR=10.2.1.1/24 -ti weaveworks/ubuntu
Multiple IP addresses and networks can be supplied in the `WEAVE_CIDR`
variable by space-separating them, as in