cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://dockerproxy.com","https://ccr.ccs.tencentyun.com","https://hub-mirror.c.163.com","https://developer.aliyun.com/mirror/","https://registry.cn-hangzhou.aliyuncs.com","https://dockerhub.azk8s.cn","https://tcr.tuna.tsinghua.edu.cn/","https://9cpn8tt6.mirror.aliyuncs.com","https://mirror.baidubce.com","https://mirror.ccs.tencentyun.com"],
"insecure-registries": ["http://192.168.1.249:8086","https://192.168.1.249:16443"],
"live-restore": true
}
重启
sudo systemctl restart docker
验证:
测试是否好使 或者查看 docker info 信息
docker pull ccr.ccs.tencentyun.com/library/nginx:latest