Migrating my docker containers to podman

In older posts, I showed how to create wordpress personal blog with docker. In particular, this website is hosted in my laptop using docker containers hosted in fedora. Everything was good until I updated Fedora to version 31. Long story short, I was not able to start my containers with Fedora 31. The reason is that docker does not support CGroups v2. A new feature incorporated in Fedora 31. In order to star my containers the only available solution at this time is to revert kernel to use CGroups v1.

I did not like this option at all, what I found is about podman. I’m not going to delve into details here, but I wanted to give it a try.

So, I decided to migrate my wordpress website using docker with Fedora 31 and CgroupsV1 to a new computer with Fedora 31 CgroupsV2 and podman.

This is a quick recipe to do that from docker to podman.

save mysql docker cotainer as a tar file

save wordpress dockercontainer as a tar file

save filesystems used by mysql and wordpress db.

copy tar files for container and volumes to server to migrate

load images with podman.

run mysql with podman