Docker root Verzeichnis konfigurieren
https://docs.docker.com/config/daemon/#configuration-file
Configuration file:
OS and configuration | File location |
---|---|
Linux, regular setup | /etc/docker/daemon.json
|
Linux, rootless mode | ~/.config/docker/daemon.json
|
Windows | C:\ProgramData\docker\config\daemon.json
|
The Docker daemon persists all data in a single directory. This tracks everything related to Docker, including containers, images, volumes, service definition, and secrets. By default this directory is:
/var/lib/docker
on Linux.C:\ProgramData\docker
on Windows.
You can configure the Docker daemon to use a different directory, using the data-root
configuration option. For example:
{
"data-root": "/mnt/docker-data"
}