[HOW-TO] Docker CouchPotato

First make sure Docker is installed.
curl -sSL https://get.docker.com | sh

It’s also useful to add the current user to Docker group to avoid having to use sudo in front of every Docker command.

sudo usermod -aG docker $USER

Then we simply need to create the systemd file, enable, then start it. Using your favourite text editor create a systemd service file;

Check out the config here; https://hub.docker.com/r/lsioarmhf/couchpotato/

sudo vim /etc/systemd/system/couchpotato.service

Description=Couchpotato container

ExecStart=/usr/bin/docker run --name=couchpotato -v /opt/couchpotato:/config -v /mnt:/downloads -v mnt:/movies -e PGID=1000 -e PUID=1000 -e TZ=UTC -p 5050:5050 lsioarmhf/couchpotato
ExecStop=/usr/bin/docker stop -t 2 couchpotato
ExecStopPost=/usr/bin/docker rm -f couchpotato


Now enable the service;

sudo systemctl enable couchpotato and then start it with sudo systemctl start couchpotato

You can check it with sudo systemctl status potato

Just open a browser on any device in your network, type in the IP address with port 5050