úterý 17. ledna 2023

Docker to podman - trouble with container names

As you know, in Rocky linux there is no docker, but aliased podman. This brings some complications and I'd like to describe here one that was very painful.
Firs of all - there is no docker compose up alias, you have to install podman-componse.
How to do it?

    pip3 install podman-compose

Then podman-compose ( https://github.com/containers/podman-compose ) will be located in /usr/local/bin/ directory.
The next step is to run it, but it was not able to communicate to each other. Why?
You have to install podman-plugins.

    sudo dnf install podman-plugins

Then you are almost there, but it is necessary to remove the network and let it create again.