QBittorrent Docker Image
Run using this command
docker run -itd \ -p 8080:8080 \ -v /data/qbittorrent/config:/root/.config/qBittorrent \ -v /data/qbittorrent/torrents:/root/.local/share/data/qBittorrent \ -v /data/qbittorrent/downloads:/root/Downloads \ sohrab/qbittorrent
To have webUI running on http://localhost:8080 (username: admin, password: adminadmin) with config in the following locations mounted:
/data/qbittorrent/config: QBittorrent configuration files
/data/qbittorrent/torrents: Torrent files
/data/qbittorrent/downloads: Download location
It is probably a good idea to add
--restart=always so the container restarts if it goes down.
Note: For the container to run, the legal notice had to be automatically accepted. By running the container, you are accepting its terms. Toggle the flag in
qBittorrent.conf to display the notice again.
FYI the right context type on the directorys should be : svirt_sandbox_file_t
i.e: $ chcon -Rt svirt_sandbox_file_t <DIR>
Note that you need to ensure the selinux policy on the mounted volume paths is added as well.