Docs / Containers & Docker / Getting Started with Podman as a Docker Alternative

Getting Started with Podman as a Docker Alternative

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 34 views · 1 min read

What is Podman?

Podman is a daemonless container engine compatible with Docker. It runs containers without a central daemon process, improving security by allowing rootless containers.

Installation

sudo apt update
sudo apt install -y podman

Docker-Compatible Commands

Podman uses the same CLI syntax as Docker:

# Pull an image
podman pull nginx:alpine

# Run a container
podman run -d --name web -p 8080:80 nginx:alpine

# List containers
podman ps

# View logs
podman logs web

# Stop and remove
podman stop web
podman rm web

Rootless Containers

# Run containers as regular user (no sudo needed)
podman run -d --name myapp -p 8080:80 nginx:alpine

# This is more secure — compromised container has no root access

Pod Management

Podman supports pods (groups of containers sharing network namespace):

# Create a pod
podman pod create --name webapp -p 8080:80

# Add containers to the pod
podman run -d --pod webapp --name web nginx:alpine
podman run -d --pod webapp --name api myapi:latest

# Both containers share localhost

Generating Systemd Services

# Generate a service file from running container
podman generate systemd --new --name myapp > ~/.config/systemd/user/myapp.service
systemctl --user enable --now myapp

Docker Compatibility

# Create an alias for seamless migration
alias docker=podman

Was this article helpful?