podman-network-inspect(1)

podman-network-inspect1

Display the network configuration for one or more networks

Usage

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

Overview

Display the (JSON format) network configuration.

Options

--format, -f=format

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

PlaceholderDescription
.Containers ...Running containers on this network.
.Created ...Timestamp when the network was created
.DNSEnabledNetwork has dns enabled (boolean)
.DriverNetwork driver
.IDNetwork ID
.InternalNetwork is internal (boolean)
.IPAMOptions ...Network ipam options
.IPv6EnabledNetwork has ipv6 subnet (boolean)
.Labels ...Network labels
.NameNetwork name
.Network ...Nested Network type
.NetworkDNSServersArray of DNS servers used in this network
.NetworkInterfaceName of the network interface on the host
.Options ...Network options
.RoutesList of static routes for this network
.SubnetsList of subnets on this network

Examples

Inspect the default podman network.

$ podman network inspect podman
[
    {
        "name": "podman",
        "id": "2f259bab93aaaaa2542ba43ef33eb990d0999ee1b9924b557b7be53c0b7a1bb9",
        "driver": "bridge",
        "network_interface": "podman0",
        "created": "2021-06-03T12:04:33.088567413+02:00",
        "subnets": [
            {
                "subnet": "10.88.0.0/16",
                "gateway": "10.88.0.1"
            }
        ],
        "ipv6_enabled": false,
        "internal": false,
        "dns_enabled": false,
        "ipam_options": {
            "driver": "host-local"
        }
    }
]

Show the subnet and gateway for a network.

$ podman network inspect podman --format "{{range .Subnets}}Subnet: {{.Subnet}} Gateway: {{.Gateway}}{{end}}"
Subnet: 10.88.0.0/16 Gateway: 10.88.0.1

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch