Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Docker image for SABnzbd+

This image works well with the below related images.

Preparation

  1. Pull the image by running docker pull dylanlindgren/docker-sabnzbd
  2. Create a folder to keep nzb files and chown it to be owned by user ID 1000 (e.g. sudo chown -R 1000 /data/nzb)
  3. Create a folder for SABnzbd files and chown it to be owned by user ID 1000 (e.g. sudo chown -R 1000 /data/sabnzbd)
  4. Create a folder to keep downloads and and chown it to be owned by user ID 1000 (e.g. sudo chown -R 1000 /data/downloads)

Running the container

docker run -d --rm --privileged=true --name sabnzbd -p 8080:8080 -v /data/nzb:/data/nzb:rw -v /data/sabnzbd:/data/sabnzbd:rw -v /data/downloads:/data/downloads:rw dylanlindgren/docker-sabnzbd

Starting automatically

To run this container as a service on a Systemd based distro (e.g. CentOS 7), create a unit file under /etc/systemd/system called sabnzbd.service with the below contents (making sure you update the command in the line starting with ExecStart to the one you used above).

[Unit]
Description=SABnzbd docker container (dylanlindgren/docker-sabnzbd)
After=docker.service
Requires=docker.service

[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker stop sabnzbd
ExecStartPre=-/usr/bin/docker rm sabnzbd
ExecStartPre=-/usr/bin/docker pull dylanlindgren/docker-sabnzbd
ExecStart=/usr/bin/docker run -d --rm --privileged=true --name sabnzbd -p 8080:8080 -v /data/nzb:/data/nzb:rw -v /data/sabnzbd:/data/sabnzbd:rw -v /data/downloads:/data/downloads:rw dylanlindgren/docker-sabnzbd
ExecStop=/usr/bin/docker stop sabnzbd

[Install]
WantedBy=multi-user.target

Then you can start/stop/restart the container with the regular Systemd commands e.g. systemctl start sabnzbd.service.

To automatically start the container when you restart enable the unit file with the command systemctl enable sabnzbd.service

Docker Pull Command
Owner
dylanlindgren
Source Repository