docker拉取私有仓库报错Error response from daemon: Get “https://harbor.lenovo.com/v2/“: dial tcp 10.121.8.58

vi /etc/docker/daemon.json
{
"data-root": "/root/docker",
"insecure-registries": ["harbor.lenovo.com"]
}
#添加insecure-registries字段,在列表里加入自己的ip或者域名
systemctl daemon-reload          #重新获取配置
systemctl restart docker          #重新启动docker
docker login harbor.lenovo.com    #登录刚刚绑定的ip,输入用户名密码就可以了

docker拉取私有仓库报错Error response from daemon: Get “https://harbor.lenovo.com/v2/“: dial tcp 10.121.8.58_第1张图片

你可能感兴趣的:(docker,tcp/ip,容器)