I'm trying to push a simple docker image on my docker registry and I get an access denied after a successful docker login.
I created a Personnal Access Token with api scope.
1) I log in with :
docker login -u gitlab-repository -p <token> registry.gitlab.com
I got Login Succeeded.
2) Then : docker build -t registry.gitlab.com/<username>/test-ci .
3) And finaly when I push :
docker push registry.gitlab.com/<username>/test-ci
I get this error : unauthorized: HTTP Basic: Access denied
-u gitlab-repositorybut isgitlab-repositoryyour username? As per the docs, if you're using a PAT, it should be your username: docs.gitlab.com/ee/ci/docker/… - Arty-chan