~/CloudSetup.In

Podman

Containers Containerfile ● stable

Daemonless, rootless container engine with a Docker-compatible CLI.

01 Overview

Podman runs OCI containers without a background daemon and without root by default, which makes it a common drop-in for Docker on RHEL-family systems and in security-conscious CI environments. Most `docker` commands work unchanged as `podman`.

→ official documentation

02 Installation

Pick a platform. Each step is copy-pasteable on its own.

01  Update package index
sudo apt-get update
02  Install Podman
sudo apt-get install -y podman
03  Verify
podman run hello-world
01  Install Podman (native on RHEL-family)
sudo dnf install -y podman
02  Verify
podman run hello-world
01  Install via Homebrew
brew install podman
02  Initialize and start the Podman VM
podman machine init
podman machine start
03  Verify
podman run hello-world
Note — commands assume sudo privileges and an up-to-date package index. Pin a specific version in production rather than tracking latest.

03 Install script

The steps above bundled into a single idempotent shell script for provisioning boxes unattended.

install-podman.sh
Ubuntu/Debian target · safe to re-run · exits non-zero on failure
↓ download script

04 Cheatsheet

The commands reached for most often once Podman is installed.

CommandWhat it does
podman psList running containers
podman run -d -p 8080:80 nameRun a container in the background
podman build -t name:tag .Build an image from a Containerfile
podman pod create --name appCreate a pod grouping several containers
podman generate systemd --name appGenerate a systemd unit for a container
podman machine startStart the Linux VM backing Podman on macOS