podman-network-inspect - Man Page

Displays the raw CNI network configuration for one or more networks

Synopsis

podman network inspect [options] [network ...]

Description

Display the raw (JSON format) network configuration.

Options

--format, -f

Pretty-print networks to JSON or using a Go template.

Example

Inspect the default podman network

# podman network inspect podman
[{
    "cniVersion": "0.3.0",
    "name": "podman",
    "plugins": [
      {
        "type": "bridge",
        "bridge": "cni0",
        "isGateway": true,
        "ipMasq": true,
        "ipam": {
            "type": "host-local",
            "subnet": "10.88.1.0/24",
            "routes": [
                { "dst": "0.0.0.0/0" }
            ]
        }
      },
      {
        "type": "portmap",
        "capabilities": {
          "portMappings": true
        }
      }
    ]
}
]
# podman network inspect podman --format '{{(index  .plugins  0).ipam.ranges}}'
[[map[gateway:10.88.0.1 subnet:10.88.0.0/16]]]

See Also

podman(1), podman-network(1), podman-network-ls(1)

History

August 2019, Originally compiled by Brent Baude bbaude@redhat.com ⟨mailto:bbaude@redhat.com⟩

Referenced By

podman-network(1), podman-network-connect(1), podman-network-create(1), podman-network-ls(1), podman-network-rm(1).