Merge pull request #849 from linuxserver/universal-docker-in-docker-custom

Add optional custom data root path
This commit is contained in:
aptalca
2024-02-22 08:34:18 -05:00
committed by GitHub
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 an environment variable `DOCKER_MODS=linuxserver/mods:universal-docker-in-docker`
* Set the `privileged` option for the container * 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. 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` 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 \ exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "docker version" \ s6-notifyoncheck -d -n 300 -w 1000 -c "docker version" \
2>&1 /usr/local/bin/dockerd \ 2>&1 /usr/local/bin/dockerd \
--data-root "/config/var/lib/docker" --data-root "${MODS_DIND_PERSISTENCE:-/config/var/lib/docker}"