➜ docker git:(master) ✗ docker network ls
NETWORK ID NAME DRIVER SCOPE
4333e0dd52ab bridge bridge local
81f9dfb35871 docker_default bridge local
a95912ab4a52 host host local
02cc13496457 hsbc-poc-cron_default bridge local
5ad54ece802f hsbc-poc_default bridge local
7c62e81b9ff5 hsbc-release_default bridge local
66044bd8e0b4 none null local
ce2587fa858d pipeline-framework_default bridge local
a19e18e8b4bf podder-job-server_default bridge local
➜ docker git:(master) ✗ docker network inspect 81f9dfb35871
[
{
"Name": "docker_default",
"Id": "81f9dfb35871181816ca1f8c5824a8a0e31afe1979f20294cd2689146e32b129",
"Created": "2018-12-11T08:39:08.556664165Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.23.0.0/16",
"Gateway": "172.23.0.1"
}
]
},
"Internal": false,
"Attachable": true,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"0514fefc4c0b2b314b69fe76692b5b4bafb151622617b03eda712c03a4dd3dd4": {
"Name": "docker_app_1",
"EndpointID": "8634abeecfa9376a01b92be82506fa50630a3eb4a1717cb1b53e6eadc863d103",
"MacAddress": "02:42:ac:17:00:03",
"IPv4Address": "172.23.0.3/16",
"IPv6Address": ""
},
"3b61b4d8bce2f3df5c8940124d23cea944025509deb86a41f06836bdb10e3798": {
"Name": "docker_mysql_1",
"EndpointID": "7576b7a5b94a8b69ad44c06ce79869afc266a7e99f7f71a78c874c4dbdbf9acf",
"MacAddress": "02:42:ac:17:00:02",
"IPv4Address": "172.23.0.2/16",
"IPv6Address": ""
},
"7039c0f0731598f5c628afe98485475dbb0287cd2e920b29d0f200c37f294fac": {
"Name": "docker_nginx_1",
"EndpointID": "1dab289e75d27553760313b50dacf2d7137b2989f9ec26aaa05367ea2d83a827",
"MacAddress": "02:42:ac:17:00:04",
"IPv4Address": "172.23.0.4/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {
"com.docker.compose.network": "default",
"com.docker.compose.project": "docker",
"com.docker.compose.version": "1.23.2"
}
}
]
Created
December 11, 2018 10:28
-
-
Save tuantranf/a2c49cc94156741261ef64b2586080c5 to your computer and use it in GitHub Desktop.
Inspect a docker network
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment