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 podmanDocker-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 webRootless 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 accessPod 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 localhostGenerating Systemd Services
# Generate a service file from running container
podman generate systemd --new --name myapp > ~/.config/systemd/user/myapp.service
systemctl --user enable --now myappDocker Compatibility
# Create an alias for seamless migration
alias docker=podman