podman-network-inspect(1)

πŸ“¦
version 6.1.4 Β· 5 versions
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

πŸ’– 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