-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux Podman Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to Podman on Linux, covering Arch Linux, CachyOS, and other distributions including installation, container management, and rootless containers.
Arch/CachyOS:
# Install Podman
sudo pacman -S podman podman-compose
# Install rootless support
sudo pacman -S slirp4netnsDebian/Ubuntu:
sudo apt install podmanFedora:
sudo dnf install podmanCheck Podman:
# Check version
podman --version
# Test Podman
podman run hello-worldBasic usage:
# Run container
podman run nginx
# Run in background
podman run -d nginx
# Run with name
podman run --name my-nginx nginxManage containers:
# List containers
podman ps
podman ps -a
# Stop container
podman stop container-name
# Start container
podman start container-name
# Remove container
podman rm container-namePodman advantage:
# Run without sudo
podman run nginx
# No root required
# More secureSetup rootless:
# Enable user namespaces
echo "kernel.unprivileged_userns_clone=1" | sudo tee -a /etc/sysctl.conf
# Reboot or apply
sudo sysctl -pRun commands:
# Execute command
podman exec -it container-name /bin/bash
# Run command
podman exec container-name commandContainer logs:
# View logs
podman logs container-name
# Follow logs
podman logs -f container-nameCheck configuration:
# Check Podman
podman info
# Check user namespace
cat /proc/sys/kernel/unprivileged_userns_cloneFix networking:
# Install network support
sudo pacman -S slirp4netns
# Check network
podman network lsThis guide covered Podman installation, rootless containers, and container management for Arch Linux, CachyOS, and other distributions.
- Docker Guide - Docker setup
- Virtualization - Virtualization
- Podman: https://podman.io/
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.