There is a quick hack to get started with Podman just in case you are not familiar with the syntax though.
Prerequisites
Solution
Step 1. First thing you got to make sure that both Docker and Podman are installed.
docker --version
podman --version
Output:
Docker version 20.10.11, build dea9396
podman version 3.4.1
Step 2. Create an alias.
alias docker=podman
Step 3. Test things out by listing currently running containers in Podman.
docker ps
Output:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
48b6f110f166 docker.io/library/httpd:latest httpd-foreground 9 seconds ago Up 9 seconds ago 0.0.0.0:8080->80/tcp brave_hugle
Conclusion
Running Podman in root mode won’t cause you any headaches when transitioning from Docker. Although it might defeat the purpose since it’s supposed to be run in a rootless mode, which might be a topic for another day. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.