ci/cd 推送镜像到远程仓库时,报错。

09:51:50 Step 5/5 : LABEL "org.label-schema.build-date"='2019-08-25T09:50:11Z' "org.label-schema.vcs-ref"='00000000' "org.label-schema.vcs-url"=''
09:51:50  ---> Running in 393483470a2a09:51:51 Removing intermediate container 393483470a2a
09:51:51  ---> f1827ef71a5b09:51:51 Successfully built f1827ef71a5b
09:51:51 Successfully tagged 00000000:latest
09:51:51 + /usr/local/bin/docker tag 00000000 test.harbor.com/test/aaa:17
09:51:51 + /usr/local/bin/docker push test.harbor.com/test/aaa:17
09:51:51 The push refers to repository [test.harbor.com/test/aaa]
09:51:52 bf40ea8a68ba: Preparing
09:51:52 35c20f26d188: Preparing09:51:52 c3fe59dd9556: Preparing
09:51:52 6ed1a81ba5b6: Preparing09:51:52 a3483ce177ce: Preparing
09:51:52 ce6c8756685b: Preparing09:51:52 30339f20ced0: Preparing
09:51:52 0eb22bfb707d: Preparing09:51:52 a2ae92ffcd29: Preparing
09:51:52 ce6c8756685b: Waiting09:51:52 30339f20ced0: Waiting
09:51:52 0eb22bfb707d: Waiting09:51:52 a2ae92ffcd29: Waiting
09:51:53 6ed1a81ba5b6: Layer already exists09:51:53 c3fe59dd9556: Layer already exists
09:51:53 error parsing HTTP 405 response body: invalid character '<' looking for beginning of value: "\r\n405 Not Allowed\r\n\r\n

405 Not Allowed

\r\n
nginx
\r\n\r\n\r\n"09:51:53 time="2019-08-25T09:51:52Z" level=fatal msg="exit status 1"


已邀请:

是不是没有配置镜像仓库凭证?

要回复问题请先登录注册