Rootless Podman: How I Got My Home Directory Synced to a Container Volume

Why a Rootless Podman Volume for Your Home Directory?

Running services inside containers is a staple of most homelab setups. When you use Podman in rootless mode you keep the container runtime isolated from the host’s privileged space, which is great for security and for users who don’t have root access. A frequent pain point is that the container’s filesystem is isolated from your personal files. If you want a container to read or write your documents, photos, or configuration files, you need a way to expose a part of your home directory to the container. This post walks through a reliable method to mount a subdirectory of ~/ into a rootless Podman container, covering the trade‑offs, pitfalls, and a few tricks that make the setup robust.

[Read More]

Running a Rootless Podman Web App with Persistent Volumes on Ubuntu

Ubuntu 24.04 LTS ships with Podman 4.8 straight from the official repos, which makes it a solid choice for a lightweight, root‑less container runtime. Rootless mode means you never have to type sudo, and the container stays inside your own user namespace – a big win for home labs and self‑hosted services.

Below is a step‑by‑step walk‑through that pulls the popular Ghost blogging platform, runs it in rootless Podman, and keeps its data in a bind mount. The same pattern works for any stateless or stateful web service you want to host.

[Read More]

Rootless Docker‑Compatible Service on a Home Server: Step‑by‑Step Guide

Rootless Docker‑Compatible Service on a Home Server

Running containers on a home server is a staple of modern homelabs. Most tutorials still point to Docker, but Docker’s root‑required installation is a security and permission headache for a single‑user machine. Rootless container runtimes—most notably Podman—offer the same Docker‑compatible CLI while keeping the daemon in user space. This guide walks through installing Podman, enabling the Docker‑compatible socket, and running a simple web service without ever touching root privileges.

[Read More]

Stopping a Podman Container from Filling Disk

Capping logs from a hello-world container

Why a “Hello‑World” Container Can Become a Disk‑Hog

When you first dip your toes into Podman, the classic “hello‑world” test is the go‑to command. It’s fast, it’s tiny, and it proves the runtime is up and running:

podman run --rm docker.io/library/hello-world

A single run looks harmless, but if you fire it off repeatedly—say, in a cron job, a CI pipeline, or a home‑lab health‑check script—the logs that Podman keeps for each run can pile up. On a busy homelab, that accumulation can eat up several gigabytes in a matter of days, especially if you’re using the default local log driver that writes to a file on disk.

[Read More]

Rootless Podman volumes: how to keep data safe across upgrades without root

Rootless Podman Volumes: Keeping Your Data Safe Across Upgrades

Rootless Podman lets you run containers without ever touching sudo.
That’s great, but it also means every volume lives in your home directory.
When you bump Podman or your distro, the storage layout can change and all your data can get wiped.
Below is a practical, coffee‑talk style walk‑through that shows how to sidestep this trap.


Why Rootless Volumes Are Different

When you run

[Read More]

Restoring a Podman Volume After Reboot

Fixing persistent volume mounts in rootless containers

Running containers without root is a lifesaver, but I hit a snag the other night. I had a small database container that wrote data to a named volume, and the next time I rebooted my machine the data was gone. Turns out the volume directory was being created under a transient mount that didn’t survive shutdown.

Why the Volume Vanishes

In rootless mode Podman keeps everything under ~/.local/share/containers/storage. When you do podman volume create, it records the mount point in a JSON file there. On reboot the user‑session systemd instance that owns the rootless runtime comes back up, but systemd doesn’t automatically remount the user‑created volumes unless you tell it to. The result? The container starts, and the volume looks like a fresh empty directory.

[Read More]

Recovering a Boot After Deleting Initramfs

Repairing a rootless Podman host from a failed boot

Introduction to the Problem

I’ve been experimenting with rootless Podman containers on my Linux system, and I’m sure I’m not the only one who’s pushed the limits of what’s possible without root privileges. However, in my enthusiasm, I once accidentally removed the initramfs image, which led to a failed boot. Don’t bother with trying to guess how I did it - let’s just say it was a misconfiguration that allowed a rootless container to access the host’s filesystem. This article will guide you through recovering from such a situation, focusing on practical steps and commands to get your system back up and running.

[Read More]

Taming Container Logs with Podman and systemd-journald

Introduction to Container Logs

I’ve been running a homelab with various self-hosted services for a while now, and managing container logs has been a challenge. With containerization making it easy to spin up multiple containers, keeping track of their logs can be overwhelming. In my experience, using Podman and systemd-journald has been a game-changer for taming container logs.

What are Container Logs?

Container logs are essentially the output of a container’s stdout and stderr streams. They contain valuable information about the container’s execution, such as errors, warnings, and debug messages. By default, container logs are stored in the container’s filesystem, which can lead to log rotation issues and make it difficult to manage logs across multiple containers. I’ve seen this go wrong when logs start filling up the container’s disk space, causing all sorts of issues.

[Read More]

Troubleshooting Podman Container Networking Issues with ss and nftables

Introduction to Podman Container Networking

I’ve been working with Podman for a while now, and I’ve found that networking issues can be a real pain point. When containers can’t communicate with each other or the host machine, it’s frustrating and can cause downtime. In this article, I’ll show you how to use the ss and nftables commands to troubleshoot Podman container networking issues.

Understanding Podman Networking

Before we dive into troubleshooting, it’s essential to understand how Podman handles networking. By default, Podman uses a bridge network, which allows containers to communicate with each other and the host machine. You can verify this by running podman network ls, which lists all available networks.

[Read More]

Fixing Rootless Podman Networking

Container connectivity issues with FirewallD

Introduction to Podman Container Networking

I’ve been experimenting with containers for a while now, and Podman has become my go-to tool for managing rootless containers. However, when it comes to networking, things can get complicated quickly. I’ve seen this go wrong when the container’s network stack is isolated from the host’s network stack, making it difficult to troubleshoot issues. In this article, I’ll share my experience with troubleshooting Podman container networking issues, focusing on rootless containers and FirewallD.

[Read More]