1. 进入 cd /etc/docker/daemon.json没有则创建
[root@localhost ~]# vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://bmmh6qxh.mirror.aliyuncs.com"],
"insecure-registries":["192.168.190.88"]
}
将其中ip更换为自己Harbor仓库的ip地址。
配置完成后重启docker
systemctl daemon-reload
systemctl restart docker