Some extra information:
$ docker network ls
NETWORK ID NAME DRIVER
3b26e78bb9e3 bridge bridge
38155239309b host host
ae14bf65d3b9 none null
e3f14e4b91ad mynet bridge
``
$ docker network inspect mynet
[
{
"Name": "mynet",
"Id": "e3f14e4b91ada13a2571944b586b0a79581c4e81d03379225618c85197562961",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "172.18.0.0/16",
"Gateway": "172.18.0.1/16"
}
]
},
"Internal": false,
"Containers": {
"3718cd10214b551ff5c2f6fc5756d65be17994aab5844154145c07210f34af3c": {
"Name": "driver",
"EndpointID": "781a087f324cb84d09dbfb3621e8fce2d1a7f8a5271bb3afdce123ecc64822f8",
"MacAddress": "02:42:ac:12:00:03",
"IPv4Address": "172.18.0.3/16",
"IPv6Address": ""
},
"b23d578dcd7b9c288aaa860c9872cd6e977422810cc25a56199ac2afba27e344": {
"Name": "prov",
"EndpointID": "4adfd0f5d40b7a3a0a295a424b5c3cedef0da22c65af285db66710f532b2508d",
"MacAddress": "02:42:ac:12:00:05",
"IPv4Address": "172.18.0.5/16",
"IPv6Address": ""
},
"b336457f467a7221bc89e667db324259125e9e80604c113e8ba24b5031431a63": {
"Name": "sdk",
"EndpointID": "7afda3f559ee2e3a140acfa0f396edd5c5b82fd0b0cbeae4ffb74b9091c049c1",
"MacAddress": "02:42:ac:12:00:04",
"IPv4Address": "172.18.0.4/16",
"IPv6Address": ""
},
"c1929b7d6c2ac578a6a00a262d8b554deb92aad17d6ef7151d2001199845f519": {
"Name": "runtime",
"EndpointID": "1f3489511231ec60b0392e44fa33932903e156e42236cd1a350036c73820d5da",
"MacAddress": "02:42:ac:12:00:02",
"IPv4Address": "172.18.0.2/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {}
}
]
…docker commands used…
``
docker network create mynet
docker run -dit --name runtime --net mynet runtime:latest
docker run -dit --name driver --net mynet --net-alias=paaslessrocks.com driver:latest
docker run -dit --name sdk --net mynet sdk:latest
docker run -dit --name prov --net mynet prov:latest
ifconfig output
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=1<PERFORMNUD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether a4:5e:60:ee:09:bb
inet6 fe80::a65e:60ff:feee:9bb%en0 prefixlen 64 scopeid 0x4
inet 192.168.1.33 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=1<PERFORMNUD>
media: autoselect
status: active
en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=60<TSO4,TSO6>
ether 6a:00:00:56:4f:f0
media: autoselect <full-duplex>
status: inactive
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=60<TSO4,TSO6>
ether 6a:00:00:56:4f:f1
media: autoselect <full-duplex>
status: inactive
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
ether 06:5e:60:ee:09:bb
media: autoselect
status: inactive
awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1452
ether 5a:5f:f9:42:c9:5c
inet6 fe80::585f:f9ff:fe42:c95c%awdl0 prefixlen 64 scopeid 0x8
nd6 options=1<PERFORMNUD>
media: autoselect
status: active
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=63<RXCSUM,TXCSUM,TSO4,TSO6>
ether a6:5e:60:ee:2b:00
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en1 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 5 priority 0 path cost 0
member: en2 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 6 priority 0 path cost 0
nd6 options=1<PERFORMNUD>
media: <unknown type>
status: inactive