使用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 镜像名

相关推荐
shandianchengzi1 天前
【记录】Tailscale|部署 Tailscale 到 linux 主机或 Docker 上
linux·运维·docker·tailscale
肉肉心很软1 天前
使用onlyoffice实现文件预览编辑 + Docker一键部署流程
运维·docker·容器
-大头.1 天前
Docker实战:构建高性能MySQL主从复制集群(读写分离)
mysql·docker·容器
LuiChun1 天前
Docker Compose 容器服务查询与文件查看操作指南(Windows Docker Desktop 版)【一】
linux·运维·windows·docker·容器
goodlook01231 天前
安装最新版本docker-26.1.4
运维·docker·容器
❀͜͡傀儡师1 天前
docker安装部署PostgreSQL带有pgvector扩展向量数据(高维数组)
docker·postgresql·容器·pgvector
IT_Octopus1 天前
Docker 镜像打的包有1.3个G 多阶段构建缩小镜像体积(不算成功)
运维·docker·容器
陈陈CHENCHEN1 天前
【Kubernetes】镜像拉取密钥 - Docker Registry
docker·kubernetes
Bits to Atoms1 天前
宇树机器人二次开发环境配置 -- docker创建
运维·docker·容器
码农小卡拉1 天前
Docker Compose部署EMQX集群详细教程(Ubuntu环境优化版)
mqtt·ubuntu·docker·容器·emqx