报错内容:
#拉取镜像
docker pull dev.registry.xxx.com:5000/镜像
Error response from daemon: Get http://dev.registry.xxx.com:5000/v2/: dial tcp: lookup dev.registry.xxx.com on x.x.x.x:53: server misbehaving
解决步骤:
1.增加镜像仓库地址
vi /etc/docker/daemon.json
{
"insecure-registries": ["dev.registry.xxx.com:5000"]
}
2.增加域名ip地址
vi /etc/hosts
x.x.x.x dev.registry.xxx.com