FYI: Docker & SABnzbd [Linux x86-64]
Posted: September 8th, 2014, 1:27 pm
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
... 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:
... and ... it's gone!
You can run also run from the github version:
First make sure git is installed
Then:
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
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
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$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 -lHTH