具体报错信息:ERROR: failed to solve: nginxinc/nginx-unprivileged:alpine: failed to resolve source metadata for docker.io/nginxinc/nginx-unprivileged:alpine: failed to authorize: failed to fetch oauth token: Post "https://auth.docker.io/token": read tcp 192.168.100.5:61091->34.226.69.105:443: wsarecv: An existing connection was forcibly closed by the remote host.
解决方式:确保能访问外网,先执行一次 docker pull nginxinc/nginx-unprivileged:alpine
然后再执行 docker build . -t 镜像名
本站资源均来自互联网,仅供研究学习,禁止违法使用和商用,产生法律纠纷本站概不负责!如果侵犯了您的权益请与我们联系!
转载请注明出处: 免费源码网-免费的源码资源网站 » 使用docker Desktop docker build 报错 无法拉取 nginx 镜像
发表评论 取消回复