What are the steps to migrate workloads from docker to podman ?

Solution Verified - Updated -


  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Docker
  • Podman


Since Red Hat has ended the support for docker after RHEL 7, the workloads needs to be migrated to podman(if podman is preferred) when upgrading to RHEL 8 or later. Follow the below steps to achieve the same.

  • Save the images using the command $ docker save -o output_name.tar image_name before performing the upgrade.

  • Remove docker and install podman by running the below commands,
    # yum remove docker -y
    # yum install podman -y

  • Load back to images using the command $ podman load -i image_name.tar

  • Run $ podman images to verify if the images have been loaded successfully.

  • Containers can then be run as usual but with podman and not docker.

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.