Skip to content

Instantly share code, notes, and snippets.

@PlugFox
Last active December 27, 2022 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PlugFox/0bd394014c286ad39e8449582caf71d9 to your computer and use it in GitHub Desktop.
Save PlugFox/0bd394014c286ad39e8449582caf71d9 to your computer and use it in GitHub Desktop.
Docker QBitTorrents client
#! /bin/zsh
docker stop qbittorrent
docker rm qbittorrent
mkdir -p $PWD/qbittorrent/{config,torrents,downloads}
# --rm --net=host --restart unless-stopped --user $UID:$GID \
docker run -d \
--name qbittorrent \
-e PUID=$UID -e PGID=$GID \
-e TZ=Europe/London \
-e WEBUI_PORT=8090 \
-p 8090:8090 -p 6881:6881/tcp -p 6881:6881/udp \
-v $PWD/qbittorrent/config:/config \
-v $PWD/qbittorrent/torrents:/torrents \
-v $PWD/qbittorrent/downloads:/downloads \
lscr.io/linuxserver/qbittorrent:latest
# username: admin, password: adminadmin
open http://admin:adminadmin@localhost:8090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment