When working with Docker, it can be useful to get detailed information about Docker networks. It includes network creation date, scope, driver, whether IPv6 is enabled and other information. This tutorial explains how to do that.
To get detailed information about network by its ID or name, docker network
command with inspect
argument can be used. For example, the following command displays information about host
network:
docker network inspect host
An example of part of the output:
[
{
"Name": "host",
"Id": "6dac39c276e18ca6263dc26466e2a4537f42e7b5644b6b5d5dba02c8e9fc9ea6",
"Created": "2022-11-20T02:10:56.200149805Z",
"Scope": "local",
"Driver": "host",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": []
},
...
]
Leave a Comment
Cancel reply