我正在使用 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禁止的问题。
为什么它有时有效,有时无效?
答案 0 :(得分:0)
我绝对相信这是一种安全功能,可以防止从同一IP
地址执行大量并发提取时发生DoS / DDoS攻击或类似情况。
我们今天遇到了类似的问题,同时参加了关于containers & HPC
的不错的课程,每个人都从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
几分钟后消失了。