Skip to main content

CentOS Stream 10: Podman Network Basis

Configure Podman networks, create custom networks, attach and detach containers from networks.

May 25, 2026 4 min read
centoscentos-stream-10podmannetworkcontainers

Configure and manage Podman networks.

Default Network

When running containers without specifying a network, the default podman network is assigned:

podman network ls
podman network inspect podman

Verify the default network is used:

podman run centos:stream10 /bin/bash -c "dnf -y install iproute; /usr/sbin/ip route"

Commit the image for later use:

podman commit $(podman ps -a | tail -1 | awk '{print $1}') srv.world/iproute

Create a Custom Network

Create a network with a specific subnet:

podman network create --subnet 192.168.100.0/24 network01
podman network ls

Run a container on the custom network:

podman run --network network01 srv.world/iproute /usr/sbin/ip route

Attach and Detach Networks

Attach a network to an existing running container:

podman network connect network01 [CONTAINER_ID]

Verify the new interface:

podman exec [CONTAINER_ID] ip route

Disconnect the network:

podman network disconnect network01 [CONTAINER_ID]

Remove a Network

podman network rm network01

If the network has associated containers, force removal:

podman network rm -f network01