其他分享
首页 > 其他分享> > docker 配置国内镜像地址

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 

标签:daemon,json,cd,tee,etc,地址,镜像,docker
来源: https://www.cnblogs.com/whalefall541/p/15311477.html