Add optional custom data root path

This commit is contained in:
Roxedus
2024-02-22 14:06:44 +01:00
parent e202c6978d
commit cd9a2a14ba
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ In the container's docker arguments,
* Set an environment variable `DOCKER_MODS=linuxserver/mods:universal-docker-in-docker`
* Set the `privileged` option for the container
Docker data root will reside under `/config/var/lib/docker`.
Docker data root will reside under `/config/var/lib/docker` by default, this is configurable by setting `MODS_DIND_PERSISTENCE` to the wanted path.
On amd64, QEMU will be enabled on container start.
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:universal-docker-in-docker|linuxserver/mods:universal-mod2`
@@ -31,4 +31,4 @@ fi
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "docker version" \
2>&1 /usr/local/bin/dockerd \
--data-root "/config/var/lib/docker"
--data-root "${MODS_DIND_PERSISTENCE:-/config/var/lib/docker}"