Skip to content

Intended use of docker registry in `.gitlab-ci.yml` with private repository for project

I have seen a bunch of issues related to docker registry, but none answers my question exactly. The closest one is #18973 (closed)

The issue is the following.

Having our in-house setup of Gitlab CE and I have an image in the registry: Screenshot_from_2016-06-28_15_24_28

I can rebuild the image locally and push it to the registry.

However, the tutorial here shown only how to use this image in dind configuration. We don't run it. My question is: can I use the image in a .gitlab-ci.yml as follows:

# define an image with latex installed
image: gitlab.ipb.uni-bonn.de:4567/global/example_ci_latex:latest

# further details of the build script 

For now this setup throws an error. This is the full output:

gitlab-ci-multi-runner 1.2.0 (3a4fcd4)
Using Docker executor with image gitlab.ipb.uni-bonn.de:4567/global/example_ci_latex:latest ...
Pulling docker image gitlab.ipb.uni-bonn.de:4567/global/example_ci_latex:latest ...

ERROR: Build failed: API error (500): Get https://gitlab.ipb.uni-bonn.de:4567/v2/global/example_ci_latex/manifests/latest: error parsing HTTP 403 response body: no error details found in HTTP response body: "{\"message\":\"forbidden\",\"status\":\"error\",\"http_status\":403}"

Am I doing something wrong?