/etc/docker/daemon.json
{
"registry-mirrors": ["http://hub-mirror.c.163.com"],
"data-root": "/home/dockerHome",
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "5"
}
}
sudo systemctl restart docker
(https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file)[https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file]