进入 /etc/docker,没有daemon.json文件就自己新建一个:
{ "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/","https://hub-mirror.c.163.com","https://registry.docker-cn.com"], "insecure-registries": ["10.0.0.12:5000"] }
保存后:
systemctl daemon-reload
systemctl restart docker.service
评论