brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Docker data-root can be a directory instead of a docker.img vDisk

Docker
~/tips/tip-unraid-docker-data-root

cat ~/tips/tip-unraid-docker-data-root.md

Explains the choice between a vDisk image and a plain folder for the place Docker keeps its data.

Everything Docker stores on Unraid lives in one place, and you get to choose what kind of place it is.

In Settings, Docker, the Docker data-root field lets you pick a btrfs vDisk (the default), an xfs vDisk, or a directory. A vDisk keeps everything inside the docker.img file. A directory stores the image layers straight on a filesystem, and an Unraid moderator points out that it has no image size limit, so there is no docker.img to fill up.

On a ZFS pool the 6.12.0 notes recommend a directory, on a share called docker that lives on that pool. The 7.0.0 notes add that the native storage driver causes significant stability issues on ZFS, so use overlay2 there and delete the old directory contents after you switch.

Caveats from the forum: changing this setting empties your container list, and you bring the containers back with Apps, Previous Apps. Running New Permissions on a docker folder destroys it, according to the same moderator. I would not switch on a quiet Sunday evening without checking that the appdata is backed up first.

Further reading: Unraid docs: Version 7.0.0 release notes, Unraid docs: Version 6.12.0 release notes, Unraid forum: 6.10.3 Docker data-root options, On this site: find what is filling your Unraid docker.img, On this site: use Previous Apps to bring back every container after deleting docker.img

More Docker tips ONBUILD RUN /usr/local/bin/python-build --dir /app/src SHELL ["/bin/bash", "-c"] docker commit <container> myname/testimage:version3 docker import /path/to/exampleimage.tgz docker compose events All Docker tips (192) All topics

Link