Skip to content

Docker Container Registry access forbidden

I have an issue with GitLab CE and Docker registry, below my scenario:

GITLAB Ubuntu 16.04 gitlabVM with Gitlab container with the following docker image gitlab/gitlab-ce:9.4.2-ce.0 docker version Docker version 17.06.0-ce, build 02c1d87

Target VM target machine where i need to pull,push images: CentOS Linux release 7.2.1511 (Core) docker version Docker version 1.12.1, build 23cf638

With GitLab CE, I have some repository with the registry enabled and some images already present on these projects, I've also linked Active Directory.

I've my personal user with my personal password and I will pass this info to docker login on target VM as following:

# docker login http://gitlab.example.com/jwt/auth
# Username: myadname.myadsurname
# Password: myactivedirectoryPassword
# Login Succeeded

If I try to pull an image with the following, I get access forbidden:

# docker pull gitlab.example.com/myprojects/projects1
# Using default tag: latest
# Error response from daemon: Get https://gitlab.example.com/v2/myprojects/projects1/manifests/latest: denied: access forbidden

I tried with token instead a password and nothing change, also ... everything I put on the password field (when asked from docker login) is good and proceed to Login Succeeded ... WTF!

Edited by Eric Eastwood