使用docker Desktop docker build 报错 无法拉取 nginx 镜像

具体报错信息: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 镜像名

相关推荐
tryCbest5 小时前
CentOS部署Docker容器
linux·docker·centos
菠萝炒饭pineapple-boss5 小时前
单机让多docker拥有多ip出口
docker
007php0077 小时前
百度面试题解析:微服务架构、Dubbo、Redis及其一致性问题(一)
redis·百度·docker·微服务·容器·职场和发展·架构
惘嘫、冋渞9 小时前
CentOS 7 下 Nginx 编译后热重启方案
chrome·nginx·centos
阑梦清川9 小时前
es的docker部署和docker相关的可可视化面板工具介绍
大数据·elasticsearch·docker
码农-小林9 小时前
使用leaflet库加载服务器离线地图瓦片(这边以本地nginx服务器为例)
运维·服务器·nginx
我狸才不是赔钱货10 小时前
容器:软件世界的标准集装箱
linux·运维·c++·docker·容器
阑梦清川12 小时前
docker入门教程--部署nginx和tomcat
nginx·docker·tomcat
安卓开发者12 小时前
Docker命令大全:从入门到精通
docker·容器·eureka
七度光阴;16 小时前
Docker入门手册
运维·docker·容器