FYI: Docker & SABnzbd [Linux x86-64]

Feel free to talk about anything and everything in this board.
Post Reply
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

FYI: Docker & SABnzbd [Linux x86-64]

Post by sander »

Here are some notes on using SABnzbd in a Docker container. The advantage of Docker is that you can run a Docker containerized application on any x86-64 Linux from laptop to server to cloud, without worrying about libraries and dependencies. I have only run it on Ubuntu as I have no other x86-64 version, so I was no able to verify this claim. ;)

Before you start, stop SABnzbd on your system ... otherwise you have a port 8080 and 9090 conflict.

First:
Make sure docker itself is installed and working. See http://docs.docker.com/installation/ for instructions.
Check docker is working with "sudo docker ps"

Run SABnzbd from the Docker repository

Code: Select all

sudo docker search sabnzbd
sudo docker pull timhaak/sabnzbd
sudo docker images
sudo docker run -d -h mysuperbox -v ~/docker-sab-config:/config -v ~/docker-sab-data:/data -p 8080:8080 -p 9090:9090 timhaak/sabnzbd
... then access the SABnzbd container via http://localhost:8080/sabnzbd/ ... you should see the SABnzbd wizard once. After filling it out, the settings are stored in ~/docker-sab-config on your host filesystem, and will be used the next time.

You can stop the running container using the first few hex numbers of the CONTAINER ID from the ps overview. Example:

Code: Select all

sander@flappie:~/git/docker-sabnzbd$ sudo docker ps
CONTAINER ID        IMAGE                    COMMAND             CREATED             STATUS              PORTS                                            NAMES
50d7863177c4        timhaak/sabnzbd:latest   "/start.sh"         2 minutes ago       Up 2 minutes        0.0.0.0:8080->8080/tcp, 0.0.0.0:9090->9090/tcp   prickly_bell        

sander@flappie:~/git/docker-sabnzbd$ sudo docker stop 50d
50d

sander@flappie:~/git/docker-sabnzbd$ sudo docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
sander@flappie:~/git/docker-sabnzbd$
... and ... it's gone! :)

You can run also run from the github version:

First make sure git is installed

Then:

Code: Select all

git clone https://github.com/timhaak/docker-sabnzbd.git
cd docker-sabnzbd/
sudo docker build -t sabnzbd . 
sudo docker run -d -h mysuperbox -v ~/docker-sab-config:/config -v ~/docker-sab-data:/data -p 8080:8080 -p 9090:9090 sabnzbd
sudo docker ps -l
If you have a look at the Dockerfile in the git directory docker-sabnzbd, you see this SABnzbd Docker container is based on a Docker Ubuntu container.

HTH
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: FYI: Docker & SABnzbd [Linux x86-64]

Post by sander »

Some more info:


On Ubuntu 14.04+, docker is in the repository (universe). Just install with "sudo apt-get install docker.io". (See http://packages.ubuntu.com/search?keywo ... chon=names for the versions)

And that's even the case with Ubuntu 32-bit. Although you can only run 32-bit docker images on 32-bit hosts. I created a 32-bit docker image for such host systems, see https://github.com/sanderjo/docker-sabnzbd-i386

See https://github.com/sanderjo/docker-sabn ... /README.md for description in more detail how to use and configure
Post Reply