podman-network-connect(1)
π podman-network-connect π
ok so bestie, welcome to podman-network-connect(1) β¨ β yes that's the real name and yes it's from the General Commands Manual. This is the page where your container gets introduced to a whole new network like it's freshman orientation π
πΈ NAME πΈ
podman-network-connect β literally just Connect a container to a network π
β¨ SYNOPSIS β¨
podman network connect [options] network container
that's it. that's the whole vibe. π¦
π« DESCRIPTION π«
So here's the tea π: this command connects a container to a network. And you can pick that container by name or by ID β whichever one your brain has the bandwidth for today, no judgement π .
And once it's connected? the container can communicate with other containers in the same network. that's it. it's in the group chat now. it's mutuals with everybody. iconic behavior honestly π
π OPTIONS π
--alias=nameβ adds a network-scoped alias for the container π if the network has DNS enabled (peep it withpodman network inspect -f {{.DNSEnabled}} <NAME>), these aliases can be used for name resolution on that given network β on top of the container name, not instead of it, bestie. You can pass--aliasmultiple times as input, so go off π check out DNS NOTES inpodman-network(1)if you want the full lore.--ip=addressβ sets a static ipv4 address for this container on this network β¨--ip6=addressβ sets a static ipv6 address for this container on this network π--mac-address=addressβ sets a static mac address for this container on this network π¦
π₯ EXAMPLES π₯
Connect specified container to a named network β the classic, the blueprint:
podman network connect test web
Connect specified container to named network with two aliases β she has range:
podman network connect --alias web1 --alias web2 test web
Connect specified container to named network with a static ip:
podman network connect --ip 10.89.1.13 test web
Connect specified container to named network with a static mac address:
podman network connect --mac-address 92:d0:c6:0a:29:33 test web
π SEE ALSO π
the whole friend group π
π HISTORY π
November 2020, Originally compiled by Brent Baude bbaude@redhat.com β¨mailto:bbaude@redhat.comβ© π«Ά
aaand that's the page, bestie π§π« it's podman-network-connect(1), last vibes from November 2020, and honestly? still slaying. go connect something. no cap. π
β¨π
π¦ where this page comes from
- arch rolling: podman-docker 6.1.4-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms