-
-
Save guybrush/28bbf90b9c32244465f7 to your computer and use it in GitHub Desktop.
trying docker 1.9.0-rc4 networking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@debian-jessie:~# docker version | |
Client: | |
Version: 1.9.0-rc4 | |
API version: 1.21 | |
Go version: go1.4.2 | |
Git commit: e6f5a3c | |
Built: Sat Oct 31 05:17:02 UTC 2015 | |
OS/Arch: linux/amd64 | |
Server: | |
Version: 1.9.0-rc4 | |
API version: 1.21 | |
Go version: go1.4.2 | |
Git commit: e6f5a3c | |
Built: Sat Oct 31 05:17:02 UTC 2015 | |
OS/Arch: linux/amd64 | |
root@debian-jessie:~# docker run -itd --name=c1 busybox | |
eca801df8540370639285f53c35fb81f6ba252ad9bb8c7011363e3c0ae1ec812 | |
root@debian-jessie:~# docker run -itd --name=c2 busybox | |
63cbbe302a4c7937fcc959de252cd230312fd0312365c879b5bc430ad373895b | |
root@debian-jessie:~# docker network inspect bridge | |
[ | |
{ | |
"Name": "bridge", | |
"Id": "852aef5c4c40cfe2b757caa0ccfc6c7e705ed20db134595a8c025a655e41f12d", | |
"Scope": "local", | |
"Driver": "bridge", | |
"IPAM": { | |
"Driver": "default", | |
"Config": [ | |
{ | |
"Subnet": "172.18.0.0/16" | |
} | |
] | |
}, | |
"Containers": { | |
"63cbbe302a4c7937fcc959de252cd230312fd0312365c879b5bc430ad373895b": { | |
"EndpointID": "07a40d8612c3216be953cacfc3181d6779d4bb3eef541139688a262dd83fc59d", | |
"MacAddress": "02:42:ac:12:00:03", | |
"IPv4Address": "172.18.0.3/16", | |
"IPv6Address": "" | |
}, | |
"eca801df8540370639285f53c35fb81f6ba252ad9bb8c7011363e3c0ae1ec812": { | |
"EndpointID": "73986182e335f064349664309a63fff4fe6b4b8fa8bbd21c1173b16a128674f7", | |
"MacAddress": "02:42:ac:12:00:02", | |
"IPv4Address": "172.18.0.2/16", | |
"IPv6Address": "" | |
} | |
}, | |
"Options": { | |
"com.docker.network.bridge.default_bridge": "true", | |
"com.docker.network.bridge.enable_icc": "true", | |
"com.docker.network.bridge.enable_ip_masquerade": "true", | |
"com.docker.network.bridge.host_binding_ipv4": "0.0.0.0", | |
"com.docker.network.bridge.name": "docker0", | |
"com.docker.network.driver.mtu": "1500" | |
} | |
} | |
] | |
root@debian-jessie:~# docker exec c1 cat /etc/hosts | |
172.18.0.2 eca801df8540 | |
127.0.0.1 localhost | |
::1 localhost ip6-localhost ip6-loopback | |
fe00::0 ip6-localnet | |
ff00::0 ip6-mcastprefix | |
ff02::1 ip6-allnodes | |
ff02::2 ip6-allrouters | |
root@debian-jessie:~# docker exec c2 cat /etc/hosts | |
172.18.0.3 63cbbe302a4c | |
127.0.0.1 localhost | |
::1 localhost ip6-localhost ip6-loopback | |
fe00::0 ip6-localnet | |
ff00::0 ip6-mcastprefix | |
ff02::1 ip6-allnodes | |
ff02::2 ip6-allrouters |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment