diff options
author | James Turnbull <james@lovedthanlost.net> | 2015-01-27 21:12:05 -0500 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2015-01-27 21:12:05 -0500 |
commit | 3c097c2d908416b126e3d4035f095245a8c696ec (patch) | |
tree | bae75b5d4027f9cf023eb2a03641ee2cd4666293 /docs/sources/articles/networking.md | |
parent | 359c74cc9e8b4acf92cdfd11530bd937558f02af (diff) | |
parent | b9243b08a52191400bc10595c82b8c08b6deeb13 (diff) | |
download | docker-docs-1.4.tar.gz |
Merge pull request #10400 from SvenDowideit/post-1.4.1-docs-update-2adocs-1.4
Post 1.4.1 docs update 2a
Diffstat (limited to 'docs/sources/articles/networking.md')
-rw-r--r-- | docs/sources/articles/networking.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/sources/articles/networking.md b/docs/sources/articles/networking.md index 07c70566cb..c1be570a4d 100644 --- a/docs/sources/articles/networking.md +++ b/docs/sources/articles/networking.md @@ -463,6 +463,7 @@ stopping the service and removing the interface: $ sudo service docker stop $ sudo ip link set dev docker0 down $ sudo brctl delbr docker0 + $ sudo iptables -t nat -F POSTROUTING Then, before starting the Docker service, create your own bridge and give it whatever configuration you want. Here we will create a simple @@ -489,6 +490,15 @@ illustrate the technique. $ echo 'DOCKER_OPTS="-b=bridge0"' >> /etc/default/docker $ sudo service docker start + # Confirming new outgoing NAT masquerade is set up + + $ sudo iptables -t nat -L -n + ... + Chain POSTROUTING (policy ACCEPT) + target prot opt source destination + MASQUERADE all -- 192.168.5.0/24 0.0.0.0/0 + + The result should be that the Docker server starts successfully and is now prepared to bind containers to the new bridge. After pausing to verify the bridge's configuration, try creating a container — you will |