Copy/Paste the following into nano and change `<YOURTIMEZONE>` + `<LOCALPATH>` accordingly:
See [this link](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for timezones.
# Using systemd
Using your favorite editor, create `/etc/systemd/system/docker-radarr.service` with the following systemd unit file. Be sure to replace `TIMEZONE` and `LOCALPATH` with the correct values.
```systemd
[Unit]
@ -28,7 +21,7 @@ Requires=docker.service
After=docker.service
[Service]
Restart=always
Restart=on-failure
RestartSec=30
ExecStart=/usr/bin/docker run --rm \
@ -36,7 +29,7 @@ ExecStart=/usr/bin/docker run --rm \
The first time you'll start the container it can take a while because it will need to download the docker image. If you want to prevent this you can do a pull first with:
If you want to automate this, you can use the following script (let it run with a systemd timer):
```bash
@ -136,7 +118,7 @@ done
Modify the variables `images`, `containers` and `services` according to your system. This script will only restart a service/container if the docker image was updated by `docker pull`.
# Doing some cleanup
## Cleanup
With these commands you can do some cleanup of docker images and containers: