Docker daemon 配置数据目录
https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file
修改 /etc/docker/daemon.json
,配置 data-root 参数即可。
https://docs.docker.com/config/daemon/#docker-daemon-directory
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.