Docker - Display network details using the docker network inspect command

The docker network ls command can be used to list networks.

docker network ls


Something like this should be returned.

r0zassvat4e5  foo-network  overlay  swarm
n3tno3xqjsu7  bar-network  overlay  swarm
ngfei70a2px2  network003   overlay  swarm


The docker network inspect command can be used to show more details about a network.

docker network inspect foo-network


Something like this should be returned.

        "Name": "foo_network",
        "Id": "ownwg3iec3c95jxoeo7mn0lxp",
        "Created": "2021-07-15T09:08:00.883064327Z",
        "Scope": "swarm",
        "Driver": "overlay",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                    "Subnet": "",
                    "Gateway": ""
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        "ConfigOnly": false,
        "Containers": null,
        "Options": {
            "": "4109"
        "Labels": {
            "com.docker.stack.namespace": "foo"


Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 5eca2 in the box below so that we can be sure you are a human.