How to change podman network_backend ?
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- podman 4+
Resolution
Note:
- This change will affect both root and rootless users
- Existing containers will be stopped and it may need to be started back manually
- Specify "netavark" or "CNI" as per requirement.
-
If the
/etc/containers/containers.conffile does not exist, copy the/usr/share/containers/containers.conffile to the/etc/containers/directory:# cp /usr/share/containers/containers.conf /etc/containers/ -
Edit the /etc/containers/containers.conf file, and add the following content to the [network] section:
network_backend="netavark" -
If you have any containers or pods, reset the storage back to the initial state:
# podman system reset -
Reboot the system:
# reboot
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