docker, podman,

Docker as an alias for Podman

Dec 23, 2021 · 1 min read · Post a comment

There is a quick hack to get started with Podman just in case you are not familiar with the syntax though.



Step 1. First thing you got to make sure that both Docker and Podman are installed.

docker --version
podman --version


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


CONTAINER ID  IMAGE                           COMMAND           CREATED        STATUS            PORTS                 NAMES
48b6f110f166  httpd-foreground  9 seconds ago  Up 9 seconds ago>80/tcp  brave_hugle


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.