使用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

相关文章:

  • 2021-11-28
  • 2021-08-14
  • 2021-09-12
  • 2021-07-26
  • 2022-01-07
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-21
  • 2020-02-03
  • 2022-02-07
  • 2021-04-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案