In this tutorial, we will walk through how to build a rootless *arr stack in 5 straightforward steps using AlmaLinux and Podman—though these exact concepts apply to just about any modern Linux distribution.
For this guide, our stack will consist of Sonarr (TV shows), Radarr (movies), NZBGet (Usenet download client), and Jellyfin (media server). While you can tailor your own stack however you like, this article focuses on the underlying container architecture, rootless permissions, and systemd integration rather than fine-tuning every application setting. Once you work through the process, you will have a repeatable pattern that makes adding tools like Maintainerr, Seerr, or Prowlarr simple down the road.
Here are the 5 steps we will cover to build the stack:
- Planning and creating the unified directory structure
- Configuring host users, UID/GID mapping, and systemd lingering
- Creating an isolated Podman container network
- Writing the Quadlet files and enabling the systemd services
- Configuring internal container routing and shared paths
Step 1: Planning and Creating a Unified Directory Structure
NOTE: If you are using a secondary or external drive for your media library, make sure it is mounted before continuing. Also, we are going to be using UID/GID 1000:1000 which is the first user created on a system. If you have multiple users make sure you substitute your UID/GID where appropriate.
Before spinning up any containers, we need a clean, predictable directory layout on the host. Keeping all container configuration data in one place and sharing a single parent media mount across every container avoids permission headaches and enables instant atomic moves (hardlinks) instead of slow cross-volume file copies.
We will separate our host storage into two locations:
~/arr/<app>: Private configuration directories for each application (stored on your fast home/NVMe drive hopefully)./mnt/media: Shared media and download storage mounted identically into every container at/data.
Let’s make a directory to store our media and share with our containers.
sudo mkdir -p /mnt/media
Now let’s make sure the permissions are set correctly for our user.
sudo chown -R $USER:$USER /mnt/media
Now let’s make a directory for each media type. Here we will be making one directory for movies and one for TV Shows. You can make as many as you like depending on how you would like to organize your media. The download folder is the temporary folder your stack will use when downloading media. These are the volumes that will be shared across your containers. We can create them all in one command using brace expansion.
mkdir -p /mnt/media/{movies,tv,downloads}
NOTE: Ideally your downloads folder would be on the same physical drive as your media library. However, some prefer to move it to a fast NVMe drive for quicker unpack I/O, but the trade-off is losing instant atomic moves.
Now let’s make the folders that will hold the configurations for your containers. Here we will make a directory under our home directory to store the configurations, one per container.
mkdir -p ~/arr/{sonarr,radarr,nzbget,jellyfin}
Here is a visual representation of how our directory tree should look.

Step 2: Configuring Host Users, UID/GID Mapping, and systemd Lingering
The first standard unprivileged user created on AlmaLinux (or most distros) is usually assigned UID/GID 1000:1000. However, before continuing, verify your UID/GID with the id command to confirm you are working as 1000:1000. If not, substitute your own UID/GID wherever you see 1000:1000 used.
id
uid=1000(savona) gid=1000(savona) groups=1000(savona),10(wheel)
Let’s also check that your user has valid subuid and subgid ranges. You don’t need to worry about the exact numbers returned here, you just want to confirm your username shows up with an allocated block so Podman can map internal container accounts.
grep $USER /etc/subuid /etc/subgid
/etc/subuid:savona:524288:65536
/etc/subgid:savona:524288:65536
Now enable lingering on your account. Lingering allows your user’s systemd instance—and your containers—to start at boot and keep running (as you) even when you are not logged into the account. It’s kind of like daemonizing your user services.
sudo loginctl enable-linger $USER
You can verify that Linger is enabled for your user:
loginctl show-user $USER --property=Linger
Linger=yes
Step 3: Creating an Isolated Podman Container Network
We want to make an isolated Podman network to keep traffic between containers isolated from the rest of the network. This will allow the containers to communicate with each other and the internet without allowing containers on other networks access. The other benefit is Podman will automatically enable Netavark DNS resolution (aardvark-dns), allowing you to reach each container by name (i.e. http://nzbget:6789) instead of IP address.
Let’s create the Podman Quadlet that will build and control our network. I am using 10.1.1.0/24 for the subnet, but you can use any private IP space (i.e. 192.168.10.0/24 with a gateway of 192.168.10.1). Make sure this network subnet does not collide with your current LAN subnet.
First, let’s make the necessary folders to hold our Podman Quadlets.
mkdir -p ~/.config/containers/systemd
Now create the network Quadlet file at ~/.config/containers/systemd/arr.network
[Unit]
Description=Isolated Arr Media Stack Network
[Network]
Driver=bridge
Subnet=10.1.1.0/24
Gateway=10.1.1.1
Now that we created the Quadlet let’s do a systemd daemon reload.
systemctl --user daemon-reload
NOTE: You don’t need to manually start or enable this network—Quadlet automatically brings it up as soon as any container referencing it starts.
That is all there is to it. Once we create our containers we will reference this network in the Quadlets.
Step 4: Writing the Quadlet files and Enabling the systemd Services
Now we have to create the four Quadlet files that will make up our arr stack. Let’s make the first file and then explain what each part of it does.
The first file will be for our nzbget container. Create the file ~/.config/containers/systemd/nzbget.container with the following contents:
[Unit]
Description=NZBGet
After=network-online.target
[Container]
ContainerName=nzbget
AutoUpdate=registry
Image=docker.io/linuxserver/nzbget:latest
UserNS=keep-id
Network=arr.network
Environment=PUID=1000
Environment=PGID=1000
Environment=UMASK=002
Environment=TZ=America/New_York
Volume=/home/savona/arr/nzbget:/config:Z
Volume=/mnt/media:/data:z
PublishPort=6789:6789
[Service]
Restart=always
TimeoutStartSec=900
[Install]
WantedBy=default.target
Some items in this file are self explanatory (Like Description), but unless you are familiar with systemd unit files others may not be so obvious. Let’s take a look at a few:
After=network-online.target – Tells the service to wait until the host network is up.
AutoUpdate=registry – Tells Podman to pull a new image if there is an update.
UserNS=keep-id – Maps the host user’s (your) UID and GID to the same UID and GID inside the container. This makes file permissions easy.
WantedBy=default.target – Starts when the system reaches its default target (such as on boot)
You may also be wondering why there is a :Z or :z at the end of the volumes. This is for SELinux. The capital Z tells SELinux that volume is private to that specific container while the lowercase z means the volume is shared with other containers.
Now we have to repeat this for the other three applications. Let’s start with Sonarr.
Create the file ~/.config/containers/systemd/sonarr.container with the following contents:
[Unit]
Description=Sonarr
After=network-online.target
[Container]
Network=arr.network
AutoUpdate=registry
Image=docker.io/linuxserver/sonarr:latest
ContainerName=sonarr
PublishPort=8989:8989
UserNS=keep-id
Environment=PUID=1000
Environment=PGID=1000
Environment=UMASK=002
Environment=TZ=America/New_York
Volume=/home/savona/arr/sonarr:/config:Z
Volume=/mnt/media:/data:z
[Service]
Restart=always
TimeoutStartSec=900
[Install]
WantedBy=default.target
Now create the file ~/.config/containers/systemd/radarr.container with the following contents:
[Unit]
Description=Radarr
After=network-online.target
[Container]
Network=arr.network
AutoUpdate=registry
Image=docker.io/linuxserver/radarr:latest
ContainerName=radarr
PublishPort=7878:7878
UserNS=keep-id
Environment=PUID=1000
Environment=PGID=1000
Environment=UMASK=002
Environment=TZ=America/New_York
Volume=/home/savona/arr/radarr:/config:Z
Volume=/mnt/media:/data:z
[Service]
Restart=always
TimeoutStartSec=900
[Install]
WantedBy=default.target
Now jellyfin… Create the file ~/.config/containers/systemd/jellyfin.container with the following contents:
[Unit]
Description=Jellyfin
After=network-online.target
[Container]
Network=arr.network
AutoUpdate=registry
Image=docker.io/linuxserver/jellyfin:latest
ContainerName=jellyfin
PublishPort=8096:8096
UserNS=keep-id
Environment=PUID=1000
Environment=PGID=1000
Environment=UMASK=002
Environment=TZ=America/New_York
Volume=/home/savona/arr/jellyfin:/config:Z
Volume=/mnt/media:/data:z
[Service]
Restart=always
TimeoutStartSec=900
[Install]
WantedBy=default.target
Now let’s do a daemon-reload and start the containers.
systemctl --user daemon-reload
systemctl --user start nzbget sonarr radarr jellyfin
The initial start may take some time, be patient. Once you return to the prompt you can verify that all containers are running with podman ps.
podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8f95a093d7be docker.io/linuxserver/sonarr:latest 11 minutes ago Up 10 minutes 0.0.0.0:8989->8989/tcp sonarr
3e11341a8266 docker.io/linuxserver/nzbget:latest 10 minutes ago Up 8 minutes 0.0.0.0:6789->6789/tcp nzbget
5d7bb74441a6 docker.io/linuxserver/radarr:latest 8 minutes ago Up 8 minutes 0.0.0.0:7878->7878/tcp radarr
32d11bcfa15b docker.io/linuxserver/jellyfin:latest 8 minutes ago Up 3 minutes 0.0.0.0:8096->8096/tcp, 8920/tcp jellyfin
We can also confirm that our isolated network was started:
savona@arr:~/.config/containers/systemd$ systemctl --user status -n 0 arr-network.service
arr-network.service - Isolated Arr Media Stack Network
Loaded: loaded (/home/savona/.config/containers/systemd/arr.network; generated)
Active: active (exited) since Sat 2026-11-28 22:32:50 EST; 52min ago
Invocation: 47ed265056474cd595c594cada976520
Main PID: 9116 (code=exited, status=0/SUCCESS)
Mem peak: 27.5M
CPU: 91ms
That’s it, our arr stack is built. The only thing left to do is to configure each service. Let’s move on to the final step to complete the configuration.
Step 5: Configuring Internal Container Routing and Shared Paths
We are not going to dive too deep into how to configure each service—that is outside the scope of this tutorial. However, we will briefly cover how to take advantage of aardvark-dns container names and verify the unified directory paths inside the apps.
NOTE: aardvark-dns names can only be used inside the isolated container network. You will still need to use your server’s IP address (or 127.0.0.1 locally) when loading the applications in your browser.
First, let’s open the necessary firewall ports in firewalld so other devices on your local network can reach the container web UIs on your AlmaLinux host:
sudo firewall-cmd --permanent --add-port={6789,8989,7878,8096}/tcp
sudo firewall-cmd --reload
With the ports open, you can access all four services in your browser using http://<server-ip>:<port> (or http://127.0.0.1:<port> if you are on the host itself):
- NZBGet – http://127.0.0.1:6789
- Sonarr – http://127.0.0.1:8989
- Radarr – http://127.0.0.1:7878
- Jellyfin – http://127.0.0.1:8096
Let’s open nzbget in the browser at http://127.0.0.1:6789 and configure the unified paths. When we first log in you will notice some messages telling you directories don’t exist.

Under Settings → Paths, update DestDir and InterDir to add /data in front of them as shown in the screenshot above. Once you save your changes and reload NZBGet, it will automatically create the directories it needs inside /mnt/media/downloads and the missing-directory warnings will disappear:
- MainDir:
/config - DestDir:
/data/downloads/completed - InterDir:
/data/downloads/intermediate
(Similarly, when you configure your media libraries in the remaining apps, point Sonarr’s root folder to /data/tv, Radarr’s root folder to /data/movies, and Jellyfin’s libraries to /data/tv and /data/movies—no path translation required.)

Now that the unified paths are set up, we can take a look at using aardvark-dns for connecting the services. Open Sonarr at http://127.0.0.1:8989 and add NZBGet as a download client (Settings → Download Clients).

The screenshot above shows us logging into Sonarr to configure the download client, in this case nzbget. Notice that in the host field we can put the name of the container instead of using a clunky IP address from the arr network. That is the benefit of aardvark-dns.
That is it! We are done. Obviously there is more app-level configuration left to build out a full working *arr stack, but the underlying container, network, SELinux, and systemd configurations are completely in place.
Maybe next time we will discuss securing these apps for remote access via Cloudflare Tunnels? If you are interested in that topic, drop a comment or an email and let me know.
Build an Arr Stack with Podman Rootless Containers in 5 Easy Steps
Join Our Newsletter
Categories
- Bash Scripting (17)
- Basic Commands (51)
- Featured (8)
- Just for Fun (5)
- Linux Quick Tips (98)
- Linux Tutorials (66)
- Miscellaneous (15)
- Network Tools (7)
- Reviews (2)
- Security (32)
- Smart Home (1)