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]

Setting up a Home NAS with Docker, NFS, and SMB – A Hands‑On Guide

Why a Docker‑Based Home NAS?

If you’re looking to turn a spare PC, a Raspberry Pi, or an old laptop into a file server that talks to Windows, macOS, and Linux, Docker is a great way to keep the host clean. You can drop in or pull out services without messing with the kernel, and you still get the familiar NFS/SMB combo that covers every client. Below is a walk‑through that sticks to Debian 12 or Ubuntu 24.04, but the same ideas work on any distro with systemd and Docker.

[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]

Why I Swapped Traefik for Nginx Ingress in My Home Reverse‑Proxy Stack.

I’ve been running a small home‑lab with Docker‑Compose for a few years. My first reverse‑proxy was Traefik because its automatic LetsEncrypt integration and simple docker‑compose.yml seemed perfect for a beginner. Over time, the stack grew: I added a GitLab runner, a Nextcloud instance, a self‑hosted mail server, and a few hobby services that required custom TLS settings. The moment I hit that point, the trade‑offs of Traefik became obvious.

Below is a walk‑through of the decision, the migration steps, and the practical differences I noticed. If you’re still on Traefik and wondering whether to switch, this should give you a clear picture.

[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]

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]