harbor 中 使用 upload 上传镜像时候 显示 没有认证
概述:
VMware harbor 安装完成后,
使用docker tag 打新的标签,
然后 用docker push上传镜像的时候,
显示 安全方面的错误。
1.客户端显示信息
[root@ip-172-30-0-20 ~]# docker push 172.30.0.20:5000/busybox:cloud
The push refers to a repository [172.30.0.20:5000/busybox]
5f70bf18a086: Image push failed
1834950e52ce: Image push failed
unauthorized: authentication required
[root@ip-172-30-0-20 ~]#
2. 服务器端:
registry_1 |time="2016-06-08T11:02:29.929222341Z" level=debugmsg="authorizing request" go.version=go1.6.1http.request.host="172.30.0.20:5000"http.request.id=300a9dbe-6027-41bb-a9a3-64e7eaf68f76 http.request.method=GEThttp.request.remoteaddr="172.30.0.20:41271"http.request.uri="/v2/"http.request.useragent="docker/1.10.3-cs3 go/go1.5.4 git-commit/6df5588kernel/3.10.0-327.el7.x86_64 os/linux arch/amd64"instance.id=71df9a7e-0ec8-4522-8978-bbd01813541f service=registry version=v2.4.0
registry_1 |time="2016-06-08T11:02:29.929388489Z" level=warning msg="errorauthorizing context: authorization token required" go.version=go1.6.1http.request.host="172.30.0.20:5000" http.request.id=300a9dbe-6027-41bb-a9a3-64e7eaf68f76http.request.method=GET http.request.remoteaddr="172.30.0.20:41271"http.request.uri="/v2/"http.request.useragent="docker/1.10.3-cs3 go/go1.5.4 git-commit/6df5588kernel/3.10.0-327.el7.x86_64 os/linux arch/amd64" instance.id=71df9a7e-0ec8-4522-8978-bbd01813541fservice=registry version=v2.4.0
registry_1 | 172.30.0.20 - -[08/Jun/2016:11:02:29 +0000] "GET /v2/ HTTP/1.1" 401 87 """docker/1.10.3-cs3 go/go1.5.4 git-commit/6df5588kernel/3.10.0-327.el7.x86_64 os/linux arch/amd64"
ui_1 | 2016-06-08T11:02:29Z [INFO]request url:/service/token?scope=repository%3Abusybox%3Apush%2Cpull&service=token-service
ui_1 | 2016-06-08T11:02:29Z[DEBUG] [authenticator.go:52]: Current AUTH_MODE is db_auth
ui_1 | 2016-06-08T11:02:29Z[DEBUG] [authutils.go:42]: scopes: [repository:busybox:push,pull]
ui_1