Skip to content

Instantly share code, notes, and snippets.

@edouard-lopez
Created February 22, 2017 11:17
Show Gist options
  • Save edouard-lopez/9cc79634086ce1021d30e23dcaae422b to your computer and use it in GitHub Desktop.
Save edouard-lopez/9cc79634086ce1021d30e23dcaae422b to your computer and use it in GitHub Desktop.
create_network(): failed to allocate gateway (x.x.x.x): Address already in use in test case http://stackoverflow.com/q/42373954/802365
[
{
"Name": "none",
"Id": "ed2452ee5e44a2d51855a8af96e44061a0e1434f3010a75cd4513aff8db773d1",
"Created": "0001-01-01T00:00:00Z",
"Scope": "local",
"Driver": "null",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": []
},
"Internal": false,
"Attachable": false,
"Containers": {},
"Options": {},
"Labels": {}
},
{
"Name": "host",
"Id": "8a1012b67f1a96bf40a844ad183f9706161883fa16382e6b0a6f6316541fe556",
"Created": "0001-01-01T00:00:00Z",
"Scope": "local",
"Driver": "host",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": []
},
"Internal": false,
"Attachable": false,
"Containers": {},
"Options": {},
"Labels": {}
},
{
"Name": "bridge",
"Id": "a4beb5d4de56179ad314441f6819876349546d48af9d6873109361c41113525f",
"Created": "2017-02-21T18:29:37.652892146+01:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.17.0.0/16",
"Gateway": "172.17.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Containers": {},
"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"
},
"Labels": {}
}
]
$ docker network ls
NETWORK ID          NAME                DRIVER              SCOPE
a4beb5d4de56        bridge              bridge              local
8a1012b67f1a        host                host                local
ed2452ee5e44        none                null                local

$ docker network inspect ed2452ee5e44 8a1012b67f1a a4beb5d4de56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment