Downloading the Sonarr Image
The first step is to download Sonarr from within Docker. Open Docker and click on the registry tab, in the search box type ‘Sonarr’ the version we are using in this guide is from Linux|Server as they are always kept up to date. You can either right click on the Sonarr image and click download, or just click on it once and press the download button.
The container will begin to download in the ‘Image’ tab you can track its progress until the download completes.
Setting up a Docker User for Sonarr and Obtaining the PGID and PUID
In previous versions of this guide we used your default admin account for each container this is not very secure so please now follow the separate setup guide and then head back here.
Setting up the container
Once the download has finished, select it from the list and click on ‘Launch’, this won’t actually start things yet you effectively launch the setup process.
As you can see in the screenshot above you will initially need to give your container a name, in this case I just left it as the default, but you can call it whatever you want then click on ‘Advanced Settings’
We need to assign the container some local ports for it to be reached on.
Whatever you do, don’t leave the local Port to auto, this will mean the container will be assigned a new port number every time it starts, meaning you have to keep looking it up each time you want to access the Sonarr interface
In our case we need to setup two ports for Sonarr, one for its Non SSL port and one for the SSL port (the SSL port is not on by default, you will need to turn this on once Sonarr is up).
Click the plus icon to add another port then enter:
Local Port = 8989
Container Port = 8989 (Sonarr’s Non SSL Port)
Local Port = 9898
Container Port = 9898 (Sonarr’s SSL Port)
Click on volume, we are now going to set up the shares we want to mount. Sonarr needs access to our Downloads, TV and Docker directories.
In your Diskstation Under the ‘Docker’ share create a folder called ‘Sonarr’ this is important as your configuration files will be stored here.
And then also add your downloads and TV folder(s). It should look like the screenshot below.
Environment Variables (PGID, PUID and Timezone)
Next we are going to setup a couple of environment variables, in the variable column enter PGID, PUID and TZ. In the first two enter the value you obtained earlier, you can find a list of timezones here https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Now you can click OK which takes you back to the first screen from earlier, click next to see a summary of your setup.
Click apply and your Sonarr container will now start up, give it a minute or so for its first launch.
Now you just need to navigate to your NAS IP and the Non SSL port we setup earlier, once you are in Sonarr you can enable SSL to access via the alternative SSL port we also setup.
Now if you are looking for some help setting up Sonarr itself head over to our configuration guide