首先,我必须说这是我做过很多次的手术,没有任何问题。
我有一个registry.gitlab.com/company/metadata_api
带有dev
标签的泊坞窗图像。
➜ metadata_api git:(no_basic_auth) ✗ docker images | grep registry.gitlab.com/company/metadata_api
registry.gitlab.com/company/metadata_api dev 80cdbdb33ec9 7 minutes ago 12.2MB
registry.gitlab.com/company/metadata_api latest d9918d874a55 3 weeks ago 12.3MB
我有两个范围的项目的部署令牌read_repository, read_registry
我还有一个全局个人访问令牌,我将使用它来丢弃权限问题
➜ metadata_api git:(no_basic_auth) ✗ docker login registry.gitlab.com -u oauth2
Password:
Login Succeeded
当我尝试推动时,我得到:
requested access to the resource is denied
为什么 ?
➜ metadata_api git:(no_basic_auth) ✗ docker push registry.gitlab.com/company/metadata_api:dev
The push refers to repository [registry.gitlab.com/company/metadata_api]
a9ae54b0eb8c: Preparing
denied: requested access to the resource is denied