Switching from Docker to Podman#
Red Hat Enterprise Linux (RHEL) v9.x removes support for Docker. If you are currently using Docker to manage the containers for your Package Security Manager, you’ll need to update your server to use Podman as the container engine instead.
Caution
Although Podman will be used as the container engine, Package Security Manager requires the use of docker-compose
due to incompatibilities between supported features in docker-compose
files.
Open a terminal and connect to your instance of Package Security Manager.
Enter your installer directory (
ate-installer-*
).Stop all containers by running the following command:
sudo docker-compose down
Once all containers have stopped, download the Podman packages and replace the conflicting Docker packages by running the following command:
sudo yum install podman podman-docker --allowerasing
Note
podman-docker
allows you to control Podman using Docker commands.Install
netavark
by running the following command:sudo yum install netavark
Using your preferred file editor, open the
usr/share/containers/containers.conf
file and set thenetwork_backend=
value to"netavark"
.Save your work and close the file.
Enable the
podman.socket
by running the following commands:sudo systemctl enable --now podman.socket sudo systemctl status podman.socket
If necessary, navigate back to your installer directory.
Load the images into Podman by running the following command:
podman load --input repo_images.tar
Start the containers by running the following command:
docker-compose up -d
Log in to your Package Security Manager using your existing credentials and verify that all existing channels, mirrors, users, configurations, etc., are as expected.