podman-network-inspect - Display the network configuration for one or more networks
Contents
Description
Display the (JSON format) network configuration.
Example
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
History
August 2021, Updated with the new network format by Paul Holzinger pholzing@redhat.com
⟨mailto:pholzing@redhat.com⟩
August 2019, Originally compiled by Brent Baude bbaude@redhat.com ⟨mailto:bbaude@redhat.com⟩
podman-network-inspect(1)
Name
podman-network-inspect - Display the network configuration for one or more networks
Options
--format,-f=format
Pretty-print networks to JSON or using a Go template.
┌────────────────────┬───────────────────────────────────────┐
│ Placeholder │ Description │
├────────────────────┼───────────────────────────────────────┤
│ .Containers... │ Running containers on this network. │
├────────────────────┼───────────────────────────────────────┤
│ .Created... │ Timestamp when the network was │
│ │ created │
├────────────────────┼───────────────────────────────────────┤
│ .DNSEnabled │ Network has dns enabled (boolean) │
├────────────────────┼───────────────────────────────────────┤
│ .Driver │ Networkdriver │
├────────────────────┼───────────────────────────────────────┤
│ .ID │ NetworkID │
├────────────────────┼───────────────────────────────────────┤
│ .Internal │ Networkisinternal(boolean) │
├────────────────────┼───────────────────────────────────────┤
│ .IPAMOptions... │ Networkipamoptions │
├────────────────────┼───────────────────────────────────────┤
│ .IPv6Enabled │ Network has ipv6 subnet (boolean) │
├────────────────────┼───────────────────────────────────────┤
│ .Labels... │ Networklabels │
├────────────────────┼───────────────────────────────────────┤
│ .Name │ Networkname │
├────────────────────┼───────────────────────────────────────┤
│ .Network... │ NestedNetworktype │
├────────────────────┼───────────────────────────────────────┤
│ .NetworkDNSServers │ Array of DNS servers used in this │
│ │ network │
├────────────────────┼───────────────────────────────────────┤
│ .NetworkInterface │ Name of the network interface on the │
│ │ host │
├────────────────────┼───────────────────────────────────────┤
│ .Options... │ Networkoptions │
├────────────────────┼───────────────────────────────────────┤
│ .Routes │ List of static routes for this │
│ │ network │
├────────────────────┼───────────────────────────────────────┤
│ .Subnets │ List of subnets on this network │
└────────────────────┴───────────────────────────────────────┘
See Also
podman(1), podman-network(1), podman-network-ls(1), podman-network-create(1)
Synopsis
podmannetworkinspect [options] network [network ...]
