docker daemon.json

/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]

posted @ 2022-06-02 16:21  ChasingDreams  阅读(203)  评论(0编辑  收藏  举报