Image for the PyPi module autoremove-torrents.
This program can help you to remove your torrents. Now you don’t need to worry about your disk space - according to your strategies, the program will check each torrent if it satisfies the remove condition; If so, delete it automatically.
This program supports qBittorrent/Transmission/μTorrent.
https://pypi.org/project/autoremove-torrents/
- Clone the repository. e.g
git clone https://github.com/Jarsky/docker-autoremove-torrents.git
- Create a docker image
cd docker-autoremove-torrents
docker build -t auto-remove-torrents:latest .
- Deploy your container using the image Here are some example snippets to help create your container
docker-cli
docker run auto-remove-torrents:latest \
-v /opt/autoremove-torrents/config:/app \
-v /opt/autoremove-torrents/logs/autoremove-torrents.log:/var/log/autoremove-torrents.log \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-e OPTS=customoptions \
--name auto-remove-torrents
docker-compose
---
version: '3.7'
services:
autoremove-torrents:
container_name: auto-remove-torrents
volumes:
- '/opt/autoremove-torrents/config:/app'
- '/opt/autoremove-torrents/logs/autoremove-torrents.log:/var/log/autoremove-torrents.log'
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- OPTS=customoptions
image: 'auto-remove-torrents:latest'
networks:
- default
restart: unless-stopped
networks:
default:
driver: bridge
external: true
Run: docker-compose up -d
OPTS can take the following arguments:
Arugments | Argument Abbreviations | Description |
---|---|---|
–view | -v | Run and see which torrents will be removed, but don’t really remove them. |
–conf | -c | Specify the path of the configuration file. |
–task | -t | Run a specific task only. The argument value is the task name. |
–log | -l | Sepcify the path of the log file. |
The file config.yml contains all the configuration needed to make autoremove-torrents work. Just bind the file to /app/config.yml and you are good to go.