podman-network-inspect(1)
π podman-network-inspect(1) π
okay so bestie, welcome to the General Commands Manual entry for podman-network-inspect β yes that whole mouthful is the manual name, we're just gonna vibe with it β¨
πΈ NAME πΈ
podman-network-inspect β Display the network configuration for one or more networks
π SYNOPSIS π
podman network inspect [options] network [network ...]
π¦ DESCRIPTION π¦
Display the (JSON format) network configuration. that's it. that's the whole thing. it just shows you the tea about your networks π
β¨ OPTIONS β¨
--format,-f=format β Pretty-print networks to JSON or using a Go template. (yes, Go template. we're fancy now π)
π the placeholder menu (for --format besties) π
here's every placeholder you can drop into that Go template, no cap:
.Containers ...β Running containers on this network..Created ...β Timestamp when the network was created.DNSEnabledβ Network has dns enabled (boolean).Driverβ Network driver.IDβ Network ID.Internalβ Network is internal (boolean).IPAMOptions ...β Network ipam options.IPv6Enabledβ Network has ipv6 subnet (boolean).Labels ...β Network labels.Nameβ Network name.Network ...β Nested Network type.NetworkDNSServersβ Array of DNS servers used in this network.NetworkInterfaceβ Name of the network interface on the host.Options ...β Network options.Routesβ List of static routes for this network.Subnetsβ List of subnets on this network
π EXAMPLE π
Inspect the default podman network. iconic behaviour fr fr:
$ 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 β look at her go ππ:
$ podman network inspect podman --format "{{range .Subnets}}Subnet: {{.Subnet}} Gateway: {{.Gateway}}{{end}}"
Subnet: 10.88.0.0/16 Gateway: 10.88.0.1
π SEE ALSO π
podman(1), podman-network(1), podman-network-ls(1), podman-network-create(1)
go read those too, they're all part of the same little family π«Ά
π 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β©
okay that's the whole page, you ate it, you understood it, main character energy only π this was podman-network-inspect(1) straight outta the General Commands Manual, and yes the footer just says podman-network-inspect(1) again because the man page said it twice and honestly? relatable. bye bestie, go inspect some networks π
ππ¦
π¦ where this page comes from
- arch rolling: podman-docker 6.1.4-1 Β· Apache-2.0
- fedora 43: podman-docker 5:5.6.2-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman-docker 5:5.8.4-1.fc43
- fedora 43: podman-docker 5:5.8.8-1.fc43
- fedora 43: podman-docker 5:5.8.9-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman-docker 5:5.8.7-1.fc44
- fedora 44: podman-docker 5:5.8.9-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- ubuntu resolute: podman-docker 5.7.0+ds2-3build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms