Updated for DSM6 and the latest version of Docker 19/11/2016
In the guide I will be taking you through the steps to download and setup Couchpotato in Docker on a Synology NAS, this makes some assumptions that you know your way around the DSM interface.
Downloading the Images
The first thing we are going to do is download the Couchpotato image from within Docker, you will need to navigate to the Registry tab and within the search box at the top of the panel enter ‘Couchpotato’ this will then list all the images available. You need to select the version made by Linux|Server.io and click on ‘download’
The image will begin to download in the ‘image’ tab you can track its progress until the download completes.
PGID and PUID
In the previous versions of these guides I used a long winded approach to getting your ID information, I have since found a much easier approach.
You will need to SSH into your Diskstation using ‘Putty’ or an equivalent program.
Open up Putty, the only thing you need to enter is the IP address of your NAS and select the SSH radio button.
Click on open, you will get a prompt asking if you trust the key, if this is the first time you have used SSH, just press OK or accept.
Enter the login information for you Synology user account, you will not be able to see the password as you type it, I use a very long one so I just paste it in from my password manager. (right click acts as paste in putty)
Once logged in type ‘id’ without the quotes and this will show your UID(aka PUID) which in my case is 1026 and the GID(aka PGID) which is 101 for an administrator
Setting up Couchpotato
Head into the ‘image’ tab and select the Couchpotato image, then click on Launch, you will be greeted with the first step of the setup.
I am not making any changes as I do not need to limit the resources on my 1815+ as I have 6GB of RAM, just go straight into ‘Advanced Settings’.
Tick the ‘Enable Auto Restart’ this will ensure the container starts up automatically if you reboot.
Then click on volumes, we are now going to set up the shares we want to mount. Couchpotato needs access to your Downloads, Config and Movies folders.
Under the ‘Docker’ share on your Diskstation create a folder called ‘NZBGet’ this is important as your configuration files will be stored here. We do the same thing for all the other guides.
And then also add each of your other folders. It should look like the screenshot below.
Next click on Port Settings, we can now setup which port we want to use for Couchpotato, by default the local port will say ‘Auto’ we need to change this to our own value otherwise the port will change every time you restart. In this case I am using 32877 but you can choose anything you want. This effectively port forwards to the container port of 5050.
Environment Variables (PGID and PUID)
Next we are going to setup a couple of environment variables this is the user details we took note of earlier so the Docker image has the right access to the shares we just created.
In the environment tab enter the details as shown in the screenshot, but change them to whatever yours were noted as.
We are pretty much ready to roll now, click on OK and you will be taken back to the overview screen we saw earlier. Click next and tick the box that says ‘Run this container after the wizard finishes’ and click Apply
Now just open up your browser and navigate to the IP address of your NAS and the port number you assigned and if you have done everything right you will be greeted by Couchpotato… On the first run you will need to give it a minute or so to start.
If you have any questions or problems feel free to let me know in the comments.