Replacing docker with podman issues

Hey everyone,

So I have been trying to replace docker with podman, and in most cases I have no issues. However I have been struggling with the podman-compose compared to docker compose.

When I attempt to bring up the mayan edms pod using the docker-compose.yml file, as suggested by the mayan documentation Here, I get the following error on one of my containers.

Error: statfs /var/run/docker.sock: no such file or directory

I’m guessing that it is not currently possible to replace docker with podman completely. I did try to install docker onto fedora 34 but then I get the following errors:

Error: 
 Problem: problem with installed package podman-docker-3:3.1.2-3.fc34.noarch
  - package podman-docker-3:3.1.2-3.fc34.noarch conflicts with docker provided by moby-engine-20.10.5-1.fc34.x86_64
  - package podman-docker-3:3.1.2-3.fc34.noarch conflicts with docker-latest provided by moby-engine-20.10.5-1.fc34.x86_64
  - package podman-docker-3:3.1.2-3.fc34.noarch conflicts with moby-engine provided by moby-engine-20.10.5-1.fc34.x86_64
  - package podman-docker-2:3.1.0-1.fc34.noarch conflicts with docker provided by moby-engine-20.10.5-1.fc34.x86_64
  - package podman-docker-2:3.1.0-1.fc34.noarch conflicts with docker-latest provided by moby-engine-20.10.5-1.fc34.x86_64
  - package podman-docker-2:3.1.0-1.fc34.noarch conflicts with moby-engine provided by moby-engine-20.10.5-1.fc34.x86_64
  - conflicting requests
  - package podman-docker-3:3.1.2-3.fc34.noarch conflicts with docker provided by moby-engine-20.10.6-1.fc34.x86_64
  - package podman-docker-3:3.1.2-3.fc34.noarch conflicts with docker-latest provided by moby-engine-20.10.6-1.fc34.x86_64
  - package podman-docker-3:3.1.2-3.fc34.noarch conflicts with moby-engine provided by moby-engine-20.10.6-1.fc34.x86_64
  - package podman-docker-2:3.1.0-1.fc34.noarch conflicts with docker provided by moby-engine-20.10.6-1.fc34.x86_64
  - package podman-docker-2:3.1.0-1.fc34.noarch conflicts with docker-latest provided by moby-engine-20.10.6-1.fc34.x86_64
  - package podman-docker-2:3.1.0-1.fc34.noarch conflicts with moby-engine provided by moby-engine-20.10.6-1.fc34.x86_64

Is it an either or situation, either I run with podman, or remove it and run with docker?
I would certainly prefer to use podman due to the increased security it brings, but I do have to also get work done, and this is where my conflict lies.

Any help of suggestions appreciated.

3 Likes

I know exactly how you feel… :sweat_smile:

Unfortunately, it isn’t. Podman handles things like networking very differently than docker, for example in “pods”, and this doesn’t directly map on to docker bits. I was doing similar bits before podman-compose was mature enough and had to pretty much abandon the docker-compose file and write myself a script that manually created the pod, primarily because of the difference in how containers communicate to each other in pods.

I’m not quite up to date with the state of podman-compose now, but these articles may give you some hints:

I do have both of them installed, so that should be fine:

$ rpm -qa \*docker\* \*podman\*
docker-ce-cli-20.10.3-3.fc31.x86_64
python3-docker-4.4.4-1.fc34.noarch
python3-docker+ssh-4.4.4-1.fc34.noarch
python3-docker-pycreds-0.4.0-9.fc34.noarch
python3-dockerpty-0.4.1-21.fc34.noarch
podman-compose-0.1.7-4.git20210129.fc34.noarch
docker-ce-19.03.6-3.fc31.x86_64
docker-compose-1.28.6-1.fc34.noarch
podman-plugins-3.1.2-3.fc34.x86_64
podman-3.1.2-3.fc34.x86_64

Is there a reason you have podman-docker installed? That is the package creating the conflict here since it also provides the docker command, which simply calls the podman command:

$ sudo dnf repoquery --conflicts podman-docker
docker
docker-ce
docker-ee
docker-latest
moby-engine

Once you uninstall it, you should be able to install docker without issues.

2 Likes

Ah ok thanks for that,

Thanks for that, I now have them both installed. I can get my apps working in docker, so the next stage is trying to figure out how to then migrate them over to podman.

I really want to increase the level of security around these apps, its certainly a journey :slight_smile:

I’m open to recommendations regarding moving to podman, specifically related to securing the environment. If anyone has any idea then please hit me up. Thanks…

2 Likes

I will read through these and see what progress I can make… Thanks again

2 Likes

A post was split to a new topic: Issues deploying Hortonworks HDP with docker/podman