问题复现
docker 执行docker file文件时报错:
ERROR: failed to do request: Head https://registry-1.docker.io/v2/pytorch/pytorch/manifests/1.6.0-cuda10.1-cudnn7-devel: dial tcp: lookup registry-1.docker.io on 192.168.65.5:53: no such host
> [internal] load metadata for docker.io/pytorch/pytorch:1.6.0-cuda10.1-cudnn7-devel:
failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to do request: Head https://registry-1.docker.io/v2/pytorch/pytorch/manifests/1.6.0-cuda10.1-cudnn7-devel: dial tcp: lookup registry-1.docker.io on 192.168.65.5:53: no such host
或者,docker拉取镜像时报错:
Error response from daemon: Head https://registry-1.docker.io/v2/nvidia/cuda/manifests/10.1-cudnn7-devel-ubuntu16.04: Get https://auth.docker.io/token?account=yang929604665&scope=repository%3Anvidia%2Fcuda%3Apull&service=registry.docker.io: EOF
原因:
鉴于国内网络问题,后续拉取 Docker 镜像十

本文介绍了解决Docker在执行Dockerfile或拉取镜像时遇到的网络问题的方法。通过配置加速器,如使用网易提供的镜像地址,可以显著提高在国内环境下Docker镜像的拉取速度。
最低0.47元/天 解锁文章
11万+

被折叠的 条评论
为什么被折叠?



