-
Choerodon平台版本: 0.10.0
-
遇到问题的执行步骤:
gitlab runner执行到push镜像到私有harbor内失败报错 -
报错日志:
$ docker push ${DOCKER_REGISTRY}/${GROUP_NAME}/${PROJECT_NAME}:${CI_COMMIT_TAG}
The push refers to a repository [harbor.cedarhd.com/operation-helloworld/nginx]
26c677fb4aa7: Preparing
9e19e687fd42: Preparing
14604828873a: Preparing
16174e87921f: Preparing
denied: requested access to the resource is denied
ERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 1
- 疑问:
创建项目时,联动在harbor内创建的项目是公开public的,本来部署devops时就已经指定了harbor的admin账号密码了,理论上不会出现如报错日志显示的禁止push的情况呀。