gpt4 book ai didi

docker - 错误 : 403 Forbidden while pushing/pulling images to/from docker

转载 作者:行者123 更新时间:2023-12-02 18:07:45 25 4
gpt4 key购买 nike


我正在使用 docker 服务器版本:1.10.3 并在 RHEL 7.2
上安装了 docker 发行版我面临的问题是间歇性的。有时推/拉命令有效,有时它们抛出以下错误:

Pulling repository test.a.b.c.com/hello-world
Error: Status 403 trying to pull repository hello-world: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>403 Forbidden</title>\n</head><body>\n<h1>Forbidden</h1>\n<p>You don't have permission to access /v1/repositories/hello-world/images\non this server.<br />\n</p>\n</body></html>\n"

sudo service docker status”的输出是:

Aug 15 11:04:48 server forward-journal[6535]: time="2016-08-15T11:04:48.866644712+02:00" level=error msg="Handler for POST /v1.22/images/create returned error: invalid reference format"
Aug 15 21:40:05 server forward-journal[6535]: time="2016-08-15T21:40:05.558387849+02:00" level=info msg="{Action=build, LoginUID=4294967295, PID=17431}"
Aug 15 21:40:23 server forward-journal[6535]: time="2016-08-15T21:40:23.346912366+02:00" level=info msg="{Action=push, LoginUID=4294967295, PID=17452}"
Aug 15 21:40:23 server forward-journal[6535]: time="2016-08-15T21:40:23.426768722+02:00" level=error msg="Upload failed: Error parsing HTTP response: unexpected end of JSON input: \"\""
Aug 15 21:40:23 server forward-journal[6535]: time="2016-08-15T21:40:23.428789638+02:00" level=error msg="Upload failed: Error parsing HTTP response: unexpected end of JSON input: \"\""
Aug 15 22:36:05 server forward-journal[6535]: time="2016-08-15T22:36:05.122054012+02:00" level=info msg="{Action=build, LoginUID=4294967295, PID=22228}"
Aug 15 22:36:16 server forward-journal[6535]: time="2016-08-15T22:36:16.022509441+02:00" level=info msg="{Action=push, LoginUID=4294967295, PID=22247}"
Aug 16 07:17:45 server forward-journal[6535]: time="2016-08-16T07:17:45.608893675+02:00" level=info msg="{Action=create, Username=test, LoginUID=877601153, PID=978}"
Aug 16 07:18:24 server forward-journal[6535]: time="2016-08- 16T07:18:24.768737515+02:00" level=info msg="{Action=push, Username=test, LoginUID=877601153, PID=1081}"
Aug 16 07:20:15 server forward-journal[6535]: time="2016-08-16T07:20:15.546273448+02:00" level=info msg="{Action=create, Username=test, LoginUID=877601153, PID=1273}"

谁能解释一下为什么会这样?为什么即使我有权限也会收到 403 forbidden issue。
为什么有时有效有时无效?

最佳答案

我绝对相信这是一项防止DoS / DDoS 的安全功能从同一 IP 地址执行大量并发拉取时的攻击或类似情况。

今天我们在参加 containers & HPC 上的一门不错的类(class)时遇到了类似的问题。每个人都从 https://singularity-hub.org来自同一集群的相同 hello-world 图像,通过:

singularity pull hello-world.sif shub://vsoch/hello-world

大多数服务员都看到了以下错误消息:

FATAL:   While pulling shub image: failed to get manifest for: shub://vsoch/hello-world: 403 Forbidden

几分钟后它就消失了。

关于docker - 错误 : 403 Forbidden while pushing/pulling images to/from docker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38969126/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com