Knowledgebase

Find frequently asked questions and setup guides by searching or by browsing the categories.

Side by Side

DockerPodman
DesignClient and daemonNo daemon
Default userRoot daemonYour own user
Rootless modeOptional setupThe default
Commandsdocker runpodman run
ImagesOCI imagesThe same images
PodsNoYes
Boot startRestart policiessystemd units
ComposeBuilt-in pluginThrough a provider
RHEL familyDocker repositoryDistribution packages

Daemon vs Daemonless

The docker command is a client. It sends every request to dockerd, a background service that owns all containers on the server. If the daemon stops, so do the containers that depend on it, and anyone who can talk to its socket controls the server; see how to run Docker without sudo for what that means.

Podman starts each container directly, with a small monitor process of its own called conmon. There is no central service, so there is no socket with root rights by default. Each user sees only their own containers.

Rootless by Default

Run as an ordinary user, Podman maps the container's root user to your own user on the server through user namespaces. A process that breaks out of the container has your rights, not root's. Docker offers a rootless mode too, but it is a separate setup step; the standard installation runs the daemon as root.

Rootless containers have limits on both tools. They cannot bind ports below 1024 without a system setting, and on Podman they stop when the user logs out unless lingering is turned on with sudo loginctl enable-linger deploy.

The Same Command Line and Images

Most Docker commands work with podman in front: run, ps, logs, exec, build, pull, and push. Many people set alias docker=podman, and some distributions ship a package that does this. Both build from a Dockerfile and pull from the same registries. One visible difference: Podman prefers full image names such as docker.io/library/nginx:stable, because it can search several registries and may ask which one you mean for a short name.

Pods

Podman can group containers into a pod that shares one network namespace, the same idea as a pod in Kubernetes. Containers in a pod reach each other on localhost. Podman can also export a pod as Kubernetes YAML and run such YAML locally, which helps when you later move to a cluster. Docker has no pods; it groups containers with networks and Compose projects.

Starting Containers at Boot

Docker brings containers back through restart policies handled by the daemon; see Docker restart policies. Podman has no daemon to do that, so it hands the job to systemd. With Quadlet you write a small .container file, and systemd turns it into a service that starts, stops, and restarts the container like any other unit. Units in general are covered in systemd unit files.

Compose Support

Docker ships Compose as a plugin: docker compose up -d. Podman offers podman compose, which calls an installed Compose provider, either the separate podman-compose project or Docker Compose itself talking to the Podman API socket. Most compose files work unchanged, but a few options behave differently. Test your file before you move a production project.

Installing Each

sudo dnf install podman
sudo apt install podman

On AlmaLinux and Rocky Linux, Podman comes from the distribution's own repositories, and Docker is installed from Docker's repository. On Ubuntu and Debian, both are available; for Docker see how to install Docker on Ubuntu and on Debian. Avoid running both against the same workloads on one server: they keep separate image stores and separate container lists.

How to Choose

  • Your distribution: on the RHEL family, Podman fits the system tools and SELinux defaults; on Ubuntu and Debian, both install cleanly.
  • Your tools: software and guides that expect a Docker socket or Docker Compose work with Docker as they are, and with Podman after some setup.
  • Your security model: rootless containers by default suit servers shared by several users.
  • Your team: what people already know and can debug at night counts for more than small design differences.

Images and Dockerfiles move between the two, so the choice can be changed later.

Was this answer helpful?
Loading...