Failed to pull image with policy "always": Error response from daemon: pull access denied for

Hello everyone,

Im facing an issue while trying to execute a downstream pipeline, the conditions are the next:

  • On the child project, we have some automated tests, and that pipeline uses an image that is stored on gitlab registry
  • If we run this child project, everything is working properly
  • If we add this project as a child on another project, and we try to execute the pipeline we recieve this message when trying to pull the image from gitlab registry:

ERROR: Job failed: failed to pull image “registry.gitlab.com/” with specified policies [always]: Error response from daemon: pull access denied for registry.gitlab.com/, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied (manager.go:237:0s)

(Note, the message is edited to not expose sensitive information of the real image)

The point here is that both projects are on 2 different sub groups, the image that we are trying to use is stored on the main group level, and both projects are private.

Somebody has any advice/suggestion about how to workaround this issue?

Regards