上传docker 镜像失败, 报错error authorizing context: authorization token required

Docker 未结 0 1589
zhaixiaobin
zhaixiaobin 剑者 2019-07-12 15:49

查看报错日志如下:

tail -f /var/log/harbor/registry.log -n 100 


Jul 12 15:22:38 bogon registry[946]: time="2019-07-12T07:22:38.090176518Z" level=info msg="response completed" go.version=go1.11.8 http.request.host="registry:5000" http.request.id=0b8de84f-c8de-4618-b877-510aa95f652b http.request.method=GET http.request.remoteaddr="172.19.0.10:45720" http.request.uri="/v2" http.request.useragent="Go-http-client/1.1" http.response.contenttype="text/html; charset=utf-8" http.response.duration="168.403µs" http.response.status=301 http.response.written=39
Jul 12 15:22:38 bogon registry[946]: 172.19.0.10 - - [12/Jul/2019:07:22:38 +0000] "GET /v2 HTTP/1.1" 301 39 "" "Go-http-client/1.1"
Jul 12 15:22:38 bogon registry[946]: time="2019-07-12T07:22:38.09465833Z" level=warning msg="error authorizing context: authorization token required" go.version=go1.11.8 http.request.host="registry:5000" http.request.id=6cc50377-b2c1-467c-bad3-ba4c87ec0687 http.request.method=GET http.request.referer="http://registry:5000/v2" http.request.remoteaddr="172.19.0.10:45720" http.request.uri="/v2/" http.request.useragent="Go-http-client/1.1"
Jul 12 15:22:38 bogon registry[946]: 172.19.0.10 - - [12/Jul/2019:07:22:38 +0000] "GET /v2/ HTTP/1.1" 401 87 "http://registry:5000/v2" "Go-http-client/1.1"
Jul 12 15:22:40 bogon registry[946]: 127.0.0.1 - - [12/Jul/2019:07:22:40 +0000] "GET / HTTP/1.1" 200 0 "" "curl/7.59.0"
Jul 12 15:22:48 bogon registry[946]: 172.19.0.10 - - [12/Jul/2019:07:22:48 +0000] "GET /v2 HTTP/1.1" 301 39 "" "Go-http-client/1.1"
Jul 12 15:22:48 bogon registry[946]: time="2019-07-12T07:22:48.083725234Z" level=info msg="response completed" go.version=go1.11.8 http.request.host="registry:5000" http.request.id=f48d3396-c654-46a0-a33f-d1e5db2d2ac8 http.request.method=GET http.request.remoteaddr="172.19.0.10:45748" http.request.uri="/v2" http.request.useragent="Go-http-client/1.1" http.response.contenttype="text/html; charset=utf-8" http.response.duration="154.409µs" http.response.status=301 http.response.written=39
Jul 12 15:22:48 bogon registry[946]: time="2019-07-12T07:22:48.089690355Z" level=warning msg="error authorizing context: authorization token required" go.version=go1.11.8 http.request.host="registry:5000" http.request.id=545525ce-5e5e-4bc4-9cde-3a5eb094cfd7 http.request.method=GET http.request.referer="http://registry:5000/v2" http.request.remoteaddr="172.19.0.10:45748" http.request.uri="/v2/" http.request.useragent="Go-http-client/1.1"
Jul 12 15:22:48 bogon registry[946]: 172.19.0.10 - - [12/Jul/2019:07:22:48 +0000] "GET /v2/ HTTP/1.1" 401 87 "http://registry:5000/v2" "Go-http-client/1.1"


TIM截图20190712185311.png



root@serv07:~/harbor# docker images
REPOSITORY                           TAG                        IMAGE ID            CREATED             SIZE
192.168.7.9/blade/blade-desk         2.3.0                      50a60f67b9b9        About an hour ago   204MB
192.168.122.50/library/centos7.1     0.1                        a2c4e9fdd35f        3 days ago          212MB

回答
  • 消灭零回复
提交回复