Hold your horses! We are pulling that article out of the magic hat...
Hold your horses! We are pulling that article out of the magic hat...
Published: 4/14/2025
dockerd
) that needs root access. Podman doesn’t—it launches containers directly as subprocesses, with less overhead and better portability.sudo
, no elevated privileges. Safer by default, ideal for multi-user environments or restricted systems.alias docker=podman
podman-compose
. It works, but it's not yet as battle-tested or fully featured as Docker Compose.Docker’s been the default for years, but Podman brings a smarter, system-native approach to containers. It can do everything Docker does—pull images, run containers, build from Dockerfiles—but it does it without a daemon, and without needing root access.
And the best part is that Podman commands are nearly identical to Docker's commands. Run podman ps
, podman run
, or even alias it to docker
, and you're good to go. It’s a drop-in replacement that feels familiar but works in a safer and more modular way.
# Fedora, RHEL, CentOS
sudo dnf install -y podman
# Debian/Ubuntu
sudo apt install -y podman
# macOS (via Homebrew)
brew install podman
You don’t need Docker installed to use Podman—even on a headless server.
podman run -d -p 8080:80 nginx
Same as Docker. If you're used to:
docker run -d -p 8080:80 nginx
You can alias it:
alias docker=podman
podman build -t myapp .
Podman uses standard Dockerfile
s—no need to rewrite anything.
podman ps
Podman has its own podman-compose
tool for handling multi-container setups:
pip install podman-compose
podman-compose up
Just drop in your existing docker-compose.yml
file. It works for most common setups, but be aware: it’s not quite as polished as Docker Compose yet (networking quirks, volume mounting differences, etc.).
Want your container to start at boot and restart automatically? Podman can generate systemd unit files:
podman generate systemd --name myapp --files --restart-policy=always
Drop them into ~/.config/systemd/user/
, then:
systemctl --user enable --now container-myapp.service
Way easier than scripting a docker run
in crontab.
Podman isn’t just a "not-Docker"—it’s a modern take on container management:
If you're doing dev on Linux, managing servers, or want secure containers in user space, Podman is well worth the switch. Bonus: you can run it alongside Docker and switch at your own pace.