github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/docs/source/markdown/podman-network-inspect.1.md (about)

     1  % podman-network-inspect(1)
     2  
     3  ## NAME
     4  podman\-network\-inspect - Displays the raw network configuration for one or more networks
     5  
     6  ## SYNOPSIS
     7  **podman network inspect** [*options*] *network* [*network* ...]
     8  
     9  ## DESCRIPTION
    10  Display the raw (JSON format) network configuration.
    11  
    12  ## OPTIONS
    13  #### **--format**, **-f**=*format*
    14  
    15  Pretty-print networks to JSON or using a Go template.
    16  
    17  | **Placeholder**   | **Description**                           |
    18  | ----------------- | ----------------------------------------- |
    19  | .ID               | Network ID                                |
    20  | .Name             | Network name                              |
    21  | .Driver           | Network driver                            |
    22  | .Labels           | Network labels                            |
    23  | .Options          | Network options                           |
    24  | .IPAMOptions      | Network ipam options                      |
    25  | .Created          | Timestamp when the network was created    |
    26  | .Internal         | Network is internal (boolean)             |
    27  | .IPv6Enabled      | Network has ipv6 subnet (boolean)         |
    28  | .DNSEnabled       | Network has dns enabled (boolean)         |
    29  | .NetworkInterface | Name of the network interface on the host |
    30  | .Subnets          | List of subnets on this network           |
    31  
    32  ## EXAMPLE
    33  
    34  Inspect the default podman network.
    35  
    36  ```
    37  $ podman network inspect podman
    38  [
    39      {
    40          "name": "podman",
    41          "id": "2f259bab93aaaaa2542ba43ef33eb990d0999ee1b9924b557b7be53c0b7a1bb9",
    42          "driver": "bridge",
    43          "network_interface": "cni-podman0",
    44          "created": "2021-06-03T12:04:33.088567413+02:00",
    45          "subnets": [
    46              {
    47                  "subnet": "10.88.0.0/16",
    48                  "gateway": "10.88.0.1"
    49              }
    50          ],
    51          "ipv6_enabled": false,
    52          "internal": false,
    53          "dns_enabled": false,
    54          "ipam_options": {
    55              "driver": "host-local"
    56          }
    57      }
    58  ]
    59  ```
    60  
    61  Show the subnet and gateway for a network.
    62  
    63  ```
    64  $ podman network inspect podman --format "{{range .Subnets}}Subnet: {{.Subnet}} Gateway: {{.Gateway}}{{end}}"
    65  Subnet: 10.88.0.0/16 Gateway: 10.88.0.1
    66  ```
    67  
    68  ## SEE ALSO
    69  **[podman(1)](podman.1.md)**, **[podman-network(1)](podman-network.1.md)**, **[podman-network-ls(1)](podman-network-ls.1.md)**, **[podman-network-create(1)](podman-network-create.1.md)**
    70  
    71  ## HISTORY
    72  August 2021, Updated with the new network format by Paul Holzinger <pholzing@redhat.com>
    73  
    74  August 2019, Originally compiled by Brent Baude <bbaude@redhat.com>