github.com/fntlnz/docker@v1.9.0-rc3/man/docker-network-inspect.1.md (about)

     1  % DOCKER(1) Docker User Manuals
     2  % Docker Community
     3  % OCT 2015
     4  # NAME
     5  docker-network-inspect - inspect a network
     6  
     7  # SYNOPSIS
     8  **docker network inspect NETWORK [NETWORK...]**
     9  
    10  [**--help**]
    11  
    12  # DESCRIPTION
    13  
    14  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:
    15  
    16  ```bash
    17  $ sudo docker run -itd --name=container1 busybox
    18  f2870c98fd504370fb86e59f32cd0753b1ac9b69b7d80566ffc7192a82b3ed27
    19  
    20  $ sudo docker run -itd --name=container2 busybox
    21  bda12f8922785d1f160be70736f26c1e331ab8aaf8ed8d56728508f2e2fd4727
    22  ```
    23  
    24  The `network inspect` command shows the containers, by id, in its results.
    25  
    26  ```bash
    27  $ sudo docker network inspect bridge
    28  [
    29    {
    30        "name": "bridge",
    31        "id": "7fca4eb8c647e57e9d46c32714271e0c3f8bf8d17d346629e2820547b2d90039",
    32        "driver": "bridge",
    33        "containers": {
    34            "bda12f8922785d1f160be70736f26c1e331ab8aaf8ed8d56728508f2e2fd4727": {
    35                "endpoint": "e0ac95934f803d7e36384a2029b8d1eeb56cb88727aa2e8b7edfeebaa6dfd758",
    36                "mac_address": "02:42:ac:11:00:03",
    37                "ipv4_address": "172.17.0.3/16",
    38                "ipv6_address": ""
    39            },
    40            "f2870c98fd504370fb86e59f32cd0753b1ac9b69b7d80566ffc7192a82b3ed27": {
    41                "endpoint": "31de280881d2a774345bbfb1594159ade4ae4024ebfb1320cb74a30225f6a8ae",
    42                "mac_address": "02:42:ac:11:00:02",
    43                "ipv4_address": "172.17.0.2/16",
    44                "ipv6_address": ""
    45            }
    46        }
    47    }
    48  ]
    49  ```
    50  
    51  
    52  # OPTIONS
    53  
    54  **--help**
    55    Print usage statement
    56  
    57  # HISTORY
    58  OCT 2015, created by Mary Anthony <mary@docker.com>