我在Proxmox 7主机上使用了一段时间的RockyLinux 8 LXC容器,并且能够提取图像。几个月以来,我再也不能从码头上提取图像了。我得到的错误消息是:
Error response from daemon: Head "https://registry-1.docker.io/v2/library/hello-world/manifests/latest": read tcp 192.168.178.82:50660->18.209.128.237:443: read: connection reset by peer我不是代理的幕后黑手。配置在一开始运行良好,我不知道从那以后发生了什么变化。我有另一个例子的RockyLinux8与对接在我的Win10上使用超级V。在那里,我可以拉图像。然后,我尝试在Proxmox上使用Ubuntu创建另一个LXC,并尝试在那里运行docker。我在ubuntu上也有同样的错误。因此,我尝试在Proxmox上使用Ubuntu而不是LXC,但仍然是相同的错误。我想我的Proxmox服务器出了点问题。
当我卷曲https://registry-1.docker.io/v2/library/hello-world/manifests/latest时,这是响应:
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"library/hello-world","Action":"pull"}]}]}docker登录是有效的,我尝试过多次登录和退出。我搜索了与此错误相关的所有内容,但没有找到解决方案。
发布于 2022-05-07 21:06:40
您需要首先使用以下命令获取Bearer令牌:
curl -sS --user "docker_user:password" "https://auth.docker.io/token?service=registry.docker.io&scope=repository:library/hello-world:pull"然后在以下方面使用$token:
curl -sS --header "Authorization: bearer $token" "https://index.docker.io/v2/library/hello-world/manifests/latest"https://stackoverflow.com/questions/72154521
复制相似问题