% podman-network 1
podman-network - Manage Podman networks
podman network subcommand
The network command manages networks for Podman.
Podman uses Netavark as the network backend.
| Command | Man Page | Description |
|---|---|---|
| connect | podman-network-connect(1) | Connect a container to a network |
| create | podman-network-create(1) | Create a Podman network |
| disconnect | podman-network-disconnect(1) | Disconnect a container from a network |
| exists | podman-network-exists(1) | Check if the given network exists |
| inspect | podman-network-inspect(1) | Display the network configuration for one or more networks |
| ls | podman-network-ls(1) | Display a summary of networks |
| prune | podman-network-prune(1) | Remove all unused networks |
| reload | podman-network-reload(1) | Reload network configuration for containers |
| rm | podman-network-rm(1) | Remove one or more networks |
| update | podman-network-update(1) | Update an existing Podman network |
Podman requires specific default IPs and, thus, network subnets. The default values used by Podman can be modified in the containers.conf(5) file.
The default bridge network (called podman) uses 10.88.0.0/16 as a subnet. When Podman runs as root, the podman network is used as default. It is the same as adding the option --network bridge or --network podman. This subnet can be changed in containers.conf(5) under the [network] section. Set the default_subnet to any subnet that is free in the environment. The name of the default network can also be changed from podman to another name using the default network key. Note that this is only done when no containers are running.
Pasta by default performs no Network Address Translation (NAT) and copies the IPs from your main interface into the container namespace. If pasta cannot find an interface with the default route, it will select an interface if there is only one interface with a valid route. If you do not have a default route and several interfaces have defined routes, pasta will be unable to figure out the correct interface and it will fail to start. To specify the interface, use -i option to pasta. A default set of pasta options can be set in containers.conf(5) under the [network] section with the pasta_options key.
Pasta is the default rootless networking tool.
When a new network is created with a podman network create command, and no subnet is given with the --subnet option, Podman starts picking a free subnet from 10.89.0.0/24 to 10.255.255.0/24. Use the default_subnet_pools option under the [network] section in containers.conf(5) to change the range and/or size that is assigned by default.