Merge branch 'latest_release_doc_updates' into 1.0
This commit is contained in:
commit
1b4f83c067
2 files changed
+25
-31
No files matched your search
+19
-7
@@ -9,7 +9,7 @@ Weave has a few more features beyond those illustrated by the [basic
|
|||||||
example](https://github.com/weaveworks/weave#example):
|
example](https://github.com/weaveworks/weave#example):
|
||||||
|
|
||||||
* [Virtual ethernet switch](#virtual-ethernet-switch)
|
* [Virtual ethernet switch](#virtual-ethernet-switch)
|
||||||
* [Manual addressing](#manual-addressing)
|
* [Address allocation](#addressing)
|
||||||
* [Application isolation](#application-isolation)
|
* [Application isolation](#application-isolation)
|
||||||
* [Dynamic network attachment](#dynamic-network-attachment)
|
* [Dynamic network attachment](#dynamic-network-attachment)
|
||||||
* [Security](#security)
|
* [Security](#security)
|
||||||
@@ -54,13 +54,25 @@ now re-use the same tools and techniques when deploying applications
|
|||||||
as containers as we would have done when deploying them 'on metal' in
|
as containers as we would have done when deploying them 'on metal' in
|
||||||
our data centre.
|
our data centre.
|
||||||
|
|
||||||
### <a name="manual-addressing"></a>Manual addressing
|
### <a name="addressing"></a>Address allocation
|
||||||
|
|
||||||
The examples so far have leveraged weave's [address allocation](ipam.html)
|
Containers are automatically allocated an IP address that is unique
|
||||||
and [discovery](#dns) features, meaning that we've not had to concern
|
across the weave network. You can see which address was allocated with
|
||||||
ourselves with IP addresses at all. It is, however, possible to
|
[`weave ps`](troubleshooting.html#list-attached-containers):
|
||||||
specify address and network explicitly using [CIDR
|
|
||||||
notation](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation)
|
host1$ weave ps a1
|
||||||
|
a7aee7233393 7a:44:d3:11:10:70 10.128.0.2/10
|
||||||
|
|
||||||
|
Weave detects when a container has exited and releases its
|
||||||
|
automatically allocated addresses so they can be re-used.
|
||||||
|
|
||||||
|
See the [Automatic IP Address Management](#ipam) documentation for
|
||||||
|
further details.
|
||||||
|
|
||||||
|
Instead of getting weave to allocate IP addresses automatically, it is
|
||||||
|
also possible to specify an address and network explicitly, expressed
|
||||||
|
in
|
||||||
|
[CIDR notation](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation)
|
||||||
- let's see how the first example would have looked:
|
- let's see how the first example would have looked:
|
||||||
|
|
||||||
On $HOST1:
|
On $HOST1:
|
||||||
|
|||||||
+6
-24
@@ -5,10 +5,13 @@ layout: default
|
|||||||
|
|
||||||
# Automatic IP Address Management
|
# Automatic IP Address Management
|
||||||
|
|
||||||
Weave can automatically assign containers an IP address that is unique
|
Weave automatically assigns containers an IP address that is unique
|
||||||
across the network.
|
across the network, and releases that address when a container
|
||||||
|
exits. This happens for all invocations of the `run`, `start`,
|
||||||
|
`attach`, `detach`, `expose`, `hide` and `launch-dns` commands, unless
|
||||||
|
the user explictly specified an address. Weave can also assign
|
||||||
|
addresses in multiple subnets.
|
||||||
|
|
||||||
* [Usage](#usage)
|
|
||||||
* [Initialisation](#initialisation)
|
* [Initialisation](#initialisation)
|
||||||
* [Choosing an allocation range](#range)
|
* [Choosing an allocation range](#range)
|
||||||
* [Automatic allocation across multiple subnets](#subnets)
|
* [Automatic allocation across multiple subnets](#subnets)
|
||||||
@@ -16,27 +19,6 @@ across the network.
|
|||||||
* [Stopping and removing peers](#stop)
|
* [Stopping and removing peers](#stop)
|
||||||
* [Troubleshooting](#troubleshooting)
|
* [Troubleshooting](#troubleshooting)
|
||||||
|
|
||||||
## <a name="usage"></a>Usage
|
|
||||||
|
|
||||||
Containers are automatically allocated an IP address when none is
|
|
||||||
specified when the container is started, e.g.
|
|
||||||
|
|
||||||
host1$ weave launch && weave launch-proxy
|
|
||||||
host1$ eval $(weave proxy-env)
|
|
||||||
host1$ C=$(docker run -ti ubuntu)
|
|
||||||
|
|
||||||
You can see which address was allocated with
|
|
||||||
[`weave ps`](troubleshooting.html#list-attached-containers):
|
|
||||||
|
|
||||||
host1$ weave ps $C
|
|
||||||
a7aff7249393 7a:51:d1:09:21:78 10.128.0.1/10
|
|
||||||
|
|
||||||
Weave detects when a container has exited and releases its
|
|
||||||
automatically allocated addresses so they can be re-used.
|
|
||||||
|
|
||||||
Automatic IP address assignment is available for the `run`, `start`,
|
|
||||||
`attach`, `detach`, `expose`, `hide` and `launch-dns` commands.
|
|
||||||
|
|
||||||
## <a name="initialisation"></a>Initialisation
|
## <a name="initialisation"></a>Initialisation
|
||||||
|
|
||||||
Just once, when the first automatic IP address allocation is requested
|
Just once, when the first automatic IP address allocation is requested
|
||||||
|
|||||||
Reference in new issue
Block a user