docker 配置国内镜像地址

cd /etc/docker/
rm -f daemon.json 
tee daemon.json <<- 'EOF' 
{
  "exec-opts": ["native.cgroupdriver=systemd"],
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "100m"
  },
  "storage-driver": "overlay2",
  "storage-opts": [
    "overlay2.override_kernel_check=true"
  ],
  "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn","https://7uuu3esz.mirror.aliyuncs.com"],
  "data-root": "/data/docker"
}
EOF 
上一篇:centos7安装docker


下一篇:docker.service: Failed with result ‘exit-code‘