# Docker Proxy for registry.gitlab.com not working

**URL:** <https://community.sonatype.com/t/docker-proxy-for-registry-gitlab-com-not-working/10695>\
**Category:** Sonatype Nexus Repository\
**Tags:** help, docker, nexus-repository\
**Created:** [May 25, 2023, 2:00pm UTC](https://community.sonatype.com/t/docker-proxy-for-registry-gitlab-com-not-working/10695 "2023-05-25T14:00:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![funtimecoding](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@funtimecoding](https://community.sonatype.com/u/funtimecoding)\
**Post date:** [May 25, 2023, 2:00pm UTC](https://community.sonatype.com/t/docker-proxy-for-registry-gitlab-com-not-working/10695/1 "2023-05-25T14:00:39Z")

</div>

I’m trying to configure Nexus with a Docker Proxy for [registry.gitlab.com](http://registry.gitlab.com) to proxy the gitlab-runner-helper image ([registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86\_64-dcfb4b66](http://registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-dcfb4b66)) - but an error appears in the Nexus log:

```auto
anonymous org.sonatype.nexus.repository.docker.internal.auth.BearerScheme - Failed to retrieve docker bearer token
2023-05-25 15:25:00,394+0200 WARN [qtp702342186-465944] anonymous org.apache.http.impl.auth.HttpAuthenticator - BEARER [complete=true] authentication error: Could not retrieve token from https://gitlab.com/jwt/auth. Status code: 403

```

I do have the Docker Bearer Token realm enabled.

Proxying works for so many other registries, but this one seems to fail. What am I missing?

My cross post from the GitLab forum: [https://forum.gitlab.com/t/registry-gitlab-com-not-working-in-docker-proxy-of-nexus-repository/87118](https://forum.gitlab.com/t/registry-gitlab-com-not-working-in-docker-proxy-of-nexus-repository/87118)

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [May 29, 2023, 5:37pm UTC](https://community.sonatype.com/t/docker-proxy-for-registry-gitlab-com-not-working/10695/2 "2023-05-29T17:37:04Z")

</div>

It looks like Gitlab is returning [403](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403) on authentication, you’d need to figure out why
