From a8b6a40f13cd44af3f6acb48f3ac319d60ff496d Mon Sep 17 00:00:00 2001 From: Tom Piccirello <8296030+Piccirello@users.noreply.github.com> Date: Mon, 2 May 2022 19:58:37 -0700 Subject: [PATCH] Separate docker image data and config dirs PR #16972. --- dist/docker/Dockerfile | 2 +- dist/docker/Readme.md | 7 ++++--- dist/docker/entrypoint.sh | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dist/docker/Dockerfile b/dist/docker/Dockerfile index e4d83cef6..09928fd23 100644 --- a/dist/docker/Dockerfile +++ b/dist/docker/Dockerfile @@ -32,6 +32,6 @@ ENV WEBUI_PORT="8080" EXPOSE 6881 6881/udp 8080 -VOLUME /config /downloads +VOLUME /config /data /downloads ENTRYPOINT ["/entrypoint.sh"] diff --git a/dist/docker/Readme.md b/dist/docker/Readme.md index de49d66d3..fd1d5a908 100644 --- a/dist/docker/Readme.md +++ b/dist/docker/Readme.md @@ -39,10 +39,11 @@ there is one important variable to run the container: #### Volumes -there are two main locations: +there are three main locations: -* `downloads` contains the files downloaded by qBittorrent * `config` contains qBittorrent configurations +* `data` contains qBittorrent application data +* `downloads` contains the files downloaded by qBittorrent ```shell docker run give.example.org/of/your/container:v0.2.1 parameters @@ -57,7 +58,7 @@ on the port `8080` the webinterface is run To start the the docker image simply run ```shell -docker run --env LEGAL=accept -p 8080:8080 -v /your/path/config:/config -v /your/path/download:/downloads --name qBittorrent qbittorrent-nox:4.2.0 +docker run --env LEGAL=accept -p 8080:8080 -v /your/path/config:/config -v /your/path/data:/data -v /your/path/download:/downloads --name qBittorrent qbittorrent-nox:4.2.0 ``` to stop the container diff --git a/dist/docker/entrypoint.sh b/dist/docker/entrypoint.sh index cea7b0f7b..4d0be5df8 100755 --- a/dist/docker/entrypoint.sh +++ b/dist/docker/entrypoint.sh @@ -18,4 +18,4 @@ else sed -i '/^\[LegalNotice\]$/{$!{N;s|\(\[LegalNotice\]\nAccepted=\).*|\1false|}}' /config/qBittorrent/qBittorrent.conf fi -HOME="/config" XDG_CONFIG_HOME="/config" XDG_DATA_HOME="/config" qbittorrent-nox --webui-port=$WEBUI_PORT +HOME="/config" XDG_CONFIG_HOME="/config" XDG_DATA_HOME="/data" qbittorrent-nox --webui-port=$WEBUI_PORT