Using gitlab private docker images from gitlab CI
Description of the problem
When referencing a gitlab private docker image like this:
services:
- registry.gitlab.com/bertbruynooghe/upnxt_service_aaa:build
I get:
Pulling docker image registry.gitlab.com/bertbruynooghe/upnxt_service_aaa:build ... ERROR: Build failed (system failure): API error (500): Get https://registry.gitlab.com/v2/bertbruynooghe/upnxt_service_aaa/manifests/build:
And the result from going directly to that page:
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail": [{"Type":"repository","Name":"bertbruynooghe/upnxt_service_aaa","Action":"pull"}]}]}
Even when I have the following:
before_script:
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" registry.gitlab.com
(which is to be expected, since that line was for docker-in-docker scenarios)
How should I do I make sure the registry is properly authorized?
Which Group/Project (with full path) is experiencing the issue?
https://gitlab.com/unifiedpost/upnxt_frontend_resources
Approximate date/time when the error occurred.
not applicable
Describe what you were doing right before the issue occurred.
not applicable