wernight / docker-qbittorrent

Containerized qBittorrent NOX (i.e., headless)
https://registry.hub.docker.com/u/wernight/qbittorrent/
MIT License
48 stars 35 forks source link

Add windows example. #26

Open icbob99 opened 2 years ago

icbob99 commented 2 years ago

Hi, you have Linux example of run command. I suggest to add lso for Win:

docker run -d  `
       host:docker  
    -p 8080:8080 -p 6882:6881/tcp -p 6882:6881/udp `
    -v C:\tmp\torrent\config:/config `
    -v C:\tmp\torrent\torrents:/torrents `
    -v C:\tmp\torrent\downloads:/downloads `
    --name qbtorrent `
    --restart=always `
    wernight/qbittorrent 
starnutoditopo commented 3 months ago

Replacing $PWD with ${PWD} should be fine both for Windows (powershell) and Linux:

docker run -d --user 520:520 -p 8080:8080 -p 6881:6881/tcp -p 6881:6881/udp -v ${PWD}/config:/config -v ${PWD}/torrents:/torrents -v ${PWD}/downloads:/downloads wernight/qbittorrent