</code></pre></div><p>If you are running a very old (3.x) kernel you may run into <ahref=https://github.com/linuxserver/docker-qbittorrent/issues/103>this issue</a> which can be worked around using <ahref=https://github.com/linuxserver/docker-qbittorrent/issues/103#issuecomment-831238484>this method</a></p><h2id=usage>Usage</h2><p>To help you get started creating a container from this image you can either use docker-compose or the docker cli.</p><h3id=docker-compose-recommended-click-here-for-more-info>docker-compose (recommended, <ahref=https://docs.linuxserver.io/general/docker-compose>click here for more info</a>)</h3><divclass=highlight><pre><span></span><code><spanclass=nn>---</span>
</code></pre></div><h3id=docker-cli-click-here-for-more-info>docker cli (<ahref=https://docs.docker.com/engine/reference/commandline/cli/>click here for more info</a>)</h3><divclass=highlight><pre><span></span><code>docker<spanclass=w></span>run<spanclass=w></span>-d<spanclass=w></span><spanclass=se>\</span>
</code></pre></div><h2id=parameters>Parameters</h2><p>Docker images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <code><external>:<internal></code> respectively. For example, <code>-p 8080:80</code> would expose port <code>80</code> from inside the container to be accessible from the host's IP on port <code>8080</code> outside the container.</p><h3id=ports-p>Ports (<code>-p</code>)</h3><table><thead><tr><thalign=center>Parameter</th><th>Function</th></tr></thead><tbody><tr><tdalign=center><code>8080</code></td><td>WebUI</td></tr><tr><tdalign=center><code>6881</code></td><td>tcp connection port</td></tr><tr><tdalign=center><code>6881/udp</code></td><td>udp connection port</td></tr></tbody></table><h3id=environment-variables-e>Environment Variables (<code>-e</code>)</h3><table><thead><tr><thalign=center>Env</th><th>Function</th></tr></thead><tbody><tr><tdalign=center><code>PUID=1000</code></td><td>for UserID - see below for explanation</td></tr><tr><tdalign=center><code>PGID=1000</code></td><td>for GroupID - see below for explanation</td></tr><tr><tdalign=center><code>TZ=Etc/UTC</code></td><td>specify a timezone to use, see this <ahref=https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List>list</a>.</td></tr><tr><tdalign=center><code>WEBUI_PORT=8080</code></td><td>for changing the port of the webui, see below for explanation</td></tr></tbody></table><h3id=volume-mappings-v>Volume Mappings (<code>-v</code>)</h3><table><thead><tr><thalign=center>Volume</th><th>Function</th></tr></thead><tbody><tr><tdalign=center><code>/config</code></td><td>Contains all relevant configuration files.</td></tr><tr><tdalign=center><code>/downloads</code></td><td>Location of downloads on disk.</td></tr></tbody></table><h4id=miscellaneous-options>Miscellaneous Options</h4><table><thead><tr><thalign=center>Parameter</th><th>Function</th></tr></thead><tbody><tr><td></td><td></td></tr></tbody></table><h2id=environment-variables-from-files-docker-secrets>Environment variables from files (Docker secrets)</h2><p>You can set any environment variable from a file by using a special prepend <code>FILE__</code>.</p><p>As an example:</p><divclass=highlight><pre><span></span><code>-e<spanclass=w></span><spanclass=nv>FILE__PASSWORD</span><spanclass=o>=</span>/run/secrets/mysecretpassword
</code></pre></div><p>Will set the environment variable <code>PASSWORD</code> based on the contents of the <code>/run/secrets/mysecretpassword</code> file.</p><h2id=umask-for-running-applications>Umask for running applications</h2><p>For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional <code>-e UMASK=022</code> setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up <ahref=https://en.wikipedia.org/wiki/Umask>here</a> before asking for support.</p><h2id=user-group-identifiers>User / Group Identifiers</h2><p>When using volumes (<code>-v</code> flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user <code>PUID</code> and group <code>PGID</code>.</p><p>Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.</p><p>In this instance <code>PUID=1000</code> and <code>PGID=1000</code>, to find yours use <code>id user</code> as below:</p><divclass=highlight><pre><span></span><code><spanclass=w></span>$<spanclass=w></span>id<spanclass=w></span>username
</code></pre></div><h2id=docker-mods>Docker Mods</h2><p><ahref="https://mods.linuxserver.io/?mod=qbittorrent"title="view available mods for this container."><imgalt="Docker Mods"src="https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=qbittorrent&query=%24.mods%5B%27qbittorrent%27%5D.mod_count&url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml"></a><ahref="https://mods.linuxserver.io/?mod=universal"title="view available universal mods."><imgalt="Docker Universal Mods"src="https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=universal&query=%24.mods%5B%27universal%27%5D.mod_count&url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml"></a></p><p>We publish various <ahref=https://github.com/linuxserver/docker-mods>Docker Mods</a> to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.</p><h2id=support-info>Support Info</h2><ul><li>Shell access whilst the container is running:</li><li><code>docker exec -it qbittorrent /bin/bash</code></li><li>To monitor the logs of the container in realtime:</li><li><code>docker logs -f qbittorrent</code></li><li>Container version number</li><li><code>docker inspect -f '{{ index .Config.Labels "build_version" }}' qbittorrent</code></li><li>Image version number</li><li><code>docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/qbittorrent:latest</code></li></ul><h2id=versions>Versions</h2><ul><li><strong>17.06.23:</strong> - Deprecate armhf as per <ahref=https://www.linuxserver.io/armhf>https://www.linuxserver.io/armhf</a>.</li><li><strong>10.06.23:</strong> - Bump unrar to 6.2.8.</li><li><strong>23.02.23:</strong> - Add qt6-qtbase-sqlite to support SQLite database for resume files.</li><li><strong>29.11.22:</strong> - Add openssl1.1-compat for qbittorrent-cli.</li><li><strong>31.10.22:</strong> - Add libtorrentv1 branch.</li><li><strong>31.08.22:</strong> - Rebase to Alpine Edge again to follow latest releases.</li><li><strong>12.08.22:</strong> - Bump unrar to 6.1.7.</li><li><strong>16.06.22:</strong> - Rebase to Alpine 3.16 from edge.</li><li><strong>25.05.22:</strong> - Fetch qbitorrent-cli from upstream repo.</li><li><strong>02.03.22:</strong> - Add unrar, 7zip, and qbitorrent-cli.</li><li><strong>01.03.22:</strong> - Add python for search plugin support.</li><li><strong>23.02.22:</strong> - Rebase to Alpine Edge, install from Alpine repos.</li><li><strong>19.02.22:</strong> - Add jq to build-stage</li><li><strong>07.01.22:</strong> - Rebase to Alpine, build from source.</li><li><strong>06.01.22:</strong> - Deprecate unstable branch.</li><li><strong>10.02.21:</strong> - Rebase to focal.</li><li><strong>20.01.21:</strong> - Deprecate <code>UMASK_SET</code> in favor of UMASK in baseimage, see above for more information.</li><li><strong>12.11.20:</strong> - Stop creating /config/data directory on startup</li><li><strong>03.04.20:</strong> - Fix adding search engine plugin</li><li><strong>02.08.19:</strong> - Add qbitorrent-cli for processing scripts.</li><li><strong>23.03.19:</strong> - Switching to new Base images, shift to arm32v7 tag.</li><li><strong>14.01.19:</strong> - Rebase to Ubuntu, add multi arch and pipeline logic.</li><li><strong>25.09.18:</strong> - Use buildstage type build, bump qbitorrent to 4.1.3.</li><li><strong>14.08.18:</strong> - Rebase to alpine 3.8, bump libtorrent to 1.1.9 and qbitorrent to 4.1.2.</li><li><strong>08.06.18:</strong> - Bump qbitorrent to 4.1.1.</li><li><strong>26.04.18:</strong> - Bump libtorrent to 1.1.7.</li><li><strong>02.03.18:</strong> - Bump qbitorrent to 4.0.4 and libtorrent to 1.1.6.</li><li><strong>02.01.18:</strong> - Deprecate cpu_core routine lack of scaling.</li><li><strong>