GitLab Docker Crash Error - Access Denied

I'm having trouble clicking on the GitLab Container Registry .

I can log in using my username and access token, but when I try to push the image into the registry, I get the following error:

$ docker push registry.gitlab.com/[groupname]/dockerfiles/nodemon

The push refers to a repository 
[registry.gitlab.com/[groupname]/dockerfiles/nodemon]
15d2ea6e1aeb: Preparing 
2260f979a949: Preparing 
f8e848bb8c20: Preparing 
740a5345706a: Preparing 
5bef08742407: Preparing 
denied: requested access to the resource is denied

I assume that the problem is not authentication, because when I start docker login registry.gitlab.com, I get a message Login Succeeded.

Where is the problem?
How should I push my images to the GitLab container registry?

+4
source share
2 answers

I got his job by including the scope apiin my access token.

The minimal scope needed is read_registry. , , .

: https://gitlab.com/gitlab-com/support-forum/issues/2370#note_44796408

+3

, - URL, .

docker push registry.gitlab.com/[account or group-name]/[reponame]/imagename

0

Source: https://habr.com/ru/post/1685962/


All Articles