Update custom-docker0.md (#4215)

This commit is contained in:
Wang Jie 2017-08-18 05:47:11 +08:00 committed by Misty Stanley-Jones
parent de023229c2
commit 5fd7f0475e
1 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ connected to the bridge and all traffic coming from and going to the container
flows over the bridge to the Docker daemon, which handles routing on behalf of flows over the bridge to the Docker daemon, which handles routing on behalf of
the container. the container.
Docker configures `docker0` with an IP address, netmask and IP allocation range. Docker configures `docker0` with an IP address, netmask, and IP allocation range.
Containers which are connected to the default bridge are allocated IP addresses Containers which are connected to the default bridge are allocated IP addresses
within this range. Certain default settings apply to the default bridge unless within this range. Certain default settings apply to the default bridge unless
you specify otherwise. For instance, the default maximum transmission unit (MTU), you specify otherwise. For instance, the default maximum transmission unit (MTU),
@ -73,7 +73,7 @@ each:
Once you have one or more containers up and running, you can confirm that Docker Once you have one or more containers up and running, you can confirm that Docker
has properly connected them to the `docker0` bridge by running the `brctl` has properly connected them to the `docker0` bridge by running the `brctl`
command on the host machine and looking at the `interfaces` column of the command on the host machine and looking at the `interfaces` column of the
output. This example shows a `docker0` bridge with two containers connected: output. This example shows a `docker0` bridge with two containers connected:
```bash ```bash
$ sudo brctl show $ sudo brctl show
@ -87,9 +87,9 @@ If the `brctl` command is not installed on your Docker host, then on Ubuntu you
should be able to run `sudo apt-get install bridge-utils` to install it. should be able to run `sudo apt-get install bridge-utils` to install it.
Finally, the `docker0` Ethernet bridge settings are used every time you create a Finally, the `docker0` Ethernet bridge settings are used every time you create a
new container. Docker selects a free IP address from the range available on the new container. Docker selects a free IP address from the range available on the
bridge each time you `docker run` a new container, and configures the bridge each time you `docker run` a new container, and configures the
container's `eth0` interface with that IP address and the bridge's netmask. The container's `eth0` interface with that IP address and the bridge's netmask. The
Docker host's own IP address on the bridge is used as the default gateway by Docker host's own IP address on the bridge is used as the default gateway by
which each container reaches the rest of the Internet. which each container reaches the rest of the Internet.