Ubuntu 24.04 ships with a fully‑featured Podman package that works out of the box.
Rootless mode lets a normal user spin up containers without any privileged
operations, which is a great fit for a home lab or a small self‑hosted service.
Below is a step‑by‑step guide to build a minimal Nginx image, run it rootlessly,
and keep the whole thing under tight, sane defaults.
Prerequisites
- Ubuntu 24.04 (LTS) installed on a machine or VM.
- A non‑root user with sudo privileges (the example assumes
alice). - Basic knowledge of the shell,
sudo, andsystemd.
# Verify the kernel version – user namespaces require 5.8+ (Ubuntu 24.04 uses 6.6)
uname -r
# Install Podman if it isn’t already
sudo apt update
sudo apt install -y podman
Enable rootless mode
Podman automatically falls back to rootless when run as a normal user, but you should confirm that the user‑namespace mapping is in place:
[Read More]