github.com/tompao/docker@v1.9.1/docs/reference/commandline/network_inspect.md (about)

     1  <!--[metadata]>
     2  +++
     3  title = "network inspect"
     4  description = "The network inspect command description and usage"
     5  keywords = ["network, inspect, user-defined"]
     6  [menu.main]
     7  parent = "smn_cli"
     8  +++
     9  <![end-metadata]-->
    10  
    11  # network inspect
    12  
    13      Usage:  docker network inspect [OPTIONS] NETWORK [NETWORK..]
    14  
    15      Displays detailed information on a network
    16  
    17        --help=false       Print usage
    18  
    19  Returns information about one or more networks. By default, this command renders all results in a JSON object. For example, if you connect two containers to a network:
    20  
    21  ```bash
    22  $ sudo docker run -itd --name=container1 busybox
    23  f2870c98fd504370fb86e59f32cd0753b1ac9b69b7d80566ffc7192a82b3ed27
    24  
    25  $ sudo docker run -itd --name=container2 busybox
    26  bda12f8922785d1f160be70736f26c1e331ab8aaf8ed8d56728508f2e2fd4727
    27  ```
    28  
    29  The `network inspect` command shows the containers, by id, in its results.
    30  
    31  ```bash
    32  $ sudo docker network inspect bridge
    33  [
    34    {
    35        "name": "bridge",
    36        "id": "7fca4eb8c647e57e9d46c32714271e0c3f8bf8d17d346629e2820547b2d90039",
    37        "driver": "bridge",
    38        "containers": {
    39            "bda12f8922785d1f160be70736f26c1e331ab8aaf8ed8d56728508f2e2fd4727": {
    40                "endpoint": "e0ac95934f803d7e36384a2029b8d1eeb56cb88727aa2e8b7edfeebaa6dfd758",
    41                "mac_address": "02:42:ac:11:00:03",
    42                "ipv4_address": "172.17.0.3/16",
    43                "ipv6_address": ""
    44            },
    45            "f2870c98fd504370fb86e59f32cd0753b1ac9b69b7d80566ffc7192a82b3ed27": {
    46                "endpoint": "31de280881d2a774345bbfb1594159ade4ae4024ebfb1320cb74a30225f6a8ae",
    47                "mac_address": "02:42:ac:11:00:02",
    48                "ipv4_address": "172.17.0.2/16",
    49                "ipv6_address": ""
    50            }
    51        }
    52    }
    53  ]
    54  ```
    55  
    56  
    57  ## Related information
    58  
    59  * [network disconnect ](network_disconnect.md)
    60  * [network connect](network_connect.md)
    61  * [network create](network_create.md)
    62  * [network ls](network_ls.md)
    63  * [network rm](network_rm.md)
    64  * [Understand Docker container networks](../../userguide/networking/dockernetworks.md)