podman-network-ls(1)

πŸ’… podman-network-ls β€” the gen-z bestie edition

okay so you opened up the manual page for podman-network-ls (General Commands Manual, icon behavior ✨) and now you're here. welcome. let's get into it 🫢

✨ NAME ✨

podman-network-ls β€” shows you a lil summary of your networks, no cap πŸ’–

🌸 SYNOPSIS 🌸

podman network ls  [options]

that's it. that's the whole vibe. options are optional, the slay is mandatory πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

It displays a list of the podman networks that already exist. like, a roster. a guest list. every network currently in the building shows up πŸŽ€

πŸ‘‘ OPTIONS πŸ‘‘

πŸ’œ --filter, -f=filter=value

Give it filter values, bestie. narrows things down ✨

okay so real talk: if you want more than one filter, you don't cram them together β€” you pass --filter multiple times, like this:

--filter name=test --filter driver=bridge

The filters you can use are:

  • driver β€” filter by driver type.
  • id β€” filter by full or partial network ID.
  • label β€” filter by networks that have the specified labels (or without them, if you use the label!=[...] form).
  • name β€” filter by network name (accepts regex 🧚).
  • until β€” filter by networks created before a given timestamp.
  • dangling β€” filter by networks with no containers attached. lonely networks fr 😭

The driver filter accepts these values: bridge, macvlan, ipvlan.

The label filter takes two formats, and yes both are valid:

  • label=key or label=key=value β€” shows networks with the specified labels.
  • label!=key or label!=key=value β€” shows networks without the specified labels.

The until filter can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed relative to the machine's time. clock math, but make it cute ⏰

The dangling filter accepts the values true or false.

🌈 --format=format

Change the default output format. can be a supported type like 'json', or a Go template. the vibe check on your output, basically πŸ’…

Valid placeholders for the Go template are listed below β€” memorize these, iykyk:

  • .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
  • .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

πŸŽ€ --no-trunc

Do not truncate the network ID. full ID, nothing cut off, main character energy πŸ‘‘

πŸ“ --noheading, -n

Omit the table headings from the listing. just the rows, no labels, minimal aesthetic ✨

⭐ --quiet, -q

The quiet option restricts the output to only the network names. literally just the names. that's it. nothing else. obsessed πŸ™ˆ

πŸ”₯ EXAMPLE πŸ”₯

Display networks β€” look at them go:

$ podman network ls
NETWORK ID    NAME         DRIVER
88a7120ee19d  podman       bridge
6dd508dbf8cd  podman6  bridge
8e35c2cd3bf6  podman5  macvlan

Display only network names:

$ podman network ls -q
podman
podman2
outside
podman9

Display name of network which support bridge plugin:

$ podman network ls --filter driver=bridge --format {{.Name}}
podman
podman2
podman9

List networks with their subnets:

$ podman network ls --format "{{.Name}}: {{range .Subnets}}{{.Subnet}} {{end}}"
podman: 10.88.0.0/16
podman3: 10.89.30.0/24 fde4:f86f:4aab:e68f::/64
macvlan:

πŸ’€ SEE ALSO πŸ’€

podman(1), podman-network(1), podman-network-inspect(1), podman-network-create(1)

go read those next, bestie, the lore is deep πŸ§šβ€β™€οΈ

🌸 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⟩


and that's the whole page!! πŸ’– this was podman-network-ls(1), dropping as part of the General Commands Manual β€” the footer was literally just podman-network-ls(1) again, serving cunt as always. slay, stay hydrated, and go list some networks 🫢✨

πŸ“¦ where this page comes from