Skip to content

Commit

Permalink
Add optional custom data root path
Browse files Browse the repository at this point in the history
  • Loading branch information
Roxedus committed Feb 22, 2024
1 parent e202c69 commit cd9a2a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit cd9a2a1

Please sign in to comment.