使用docker获取镜像失败:Error response from daemon: Get https://index.docker.io/v1/s

使用docker 获取镜像失败

使用docker获取镜像失败:Error response from daemon: Get https://index.docker.io/v1/s

1、首先要在在/etc/docker/daemon.json添加阿里云镜像
使用命令:vi /etc/docker/daemon.json
使用docker获取镜像失败:Error response from daemon: Get https://index.docker.io/v1/s
{
“registry-mirrors”: [“https://registry.docker-cn.com”,“https://pee6w651.mirror.aliyuncs.com”]
}
2、查看服务器DNS网络配置
使用命令vi /etc/resolv.conf
将该文件里的内容修改为以下:
使用docker获取镜像失败:Error response from daemon: Get https://index.docker.io/v1/s
最后就可以放心下载了
使用docker获取镜像失败:Error response from daemon: Get https://index.docker.io/v1/s