How to change podman network_backend ?
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- podman 4+
Resolution
- One can change the network_backend from CNI to netavark and vice versa by making changes to containers.conf
- Edit the file /etc/containers/containers.conf (create one if already not present) to include the below lines,
[network]
network_backend = "netavark"
- Specify "netavark" or "CNI" as per requirement.
Note:
- This change will affect both root and rootless users
- Existing containers will be stopped and it may need to be started back manually
Diagnostic Steps
- network_backend can be checked from
podman info
# podman info | grep networkBackend
networkBackend: netavark
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments