Lesstep
GitLab · CI/CD jobs · container registry · job token · Checked November 19, 2026

GitLab: a job fails to pull an image from another project

A runner can return Failed to pull image when a job tries to pull an image from the container registry of another project. The runner signs in with the job's CI/CD job token, and if the token's settings keep it out, the pull is denied (GitLab docs: debugging CI/CD pipelines, checked November 19, 2026). The messages look like this:

WARNING: Failed to pull image with policy "always": Error response from daemon: pull access denied for registry.example.com/path/to/project, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

WARNING: Failed to pull image with policy "": image pull failed: rpc error: code = Unknown desc = failed to pull and unpack image "registry.example.com/path/to/project/image:v1.2.3": failed to resolve reference "registry.example.com/path/to/project/image:v1.2.3": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

When it happens

To see the failed job and its log in the IDE: Pipelines and Jobs Inbox for GitLab CI, a plugin for JetBrains IDEs, shows next to a failed job its status, how long it ran and the message GitLab gives for the failure, and opens the job's log in a console viewer at the bottom of the IDE.

Fix

Add every project whose jobs pull the image to the allowlist of the project that hosts it. You need the Maintainer or Owner role there, and a role in the project you add if it is private or internal:

  1. In the hosting project, open Settings > CI/CD and expand Job token permissions.
  2. Next to CI/CD job token allowlist select Add, then Group or project.
  3. Enter the path of the group or project and select Add.

Adding a group lists every project in it, subgroups at any depth, and projects added to the group later. Adding a project does not give its members any permission they did not already have in the hosting project. The allowlist holds up to 200 groups and 200 projects, counted separately.

When the error comes and goes

If the same job pulls the image on some runs and fails on others, look at who runs it. A runner that has fetched and cached an image for a user who may access it can serve it to everyone, including users who may not; a runner that has never cached it asks GitLab and the user without access gets Failed to pull image. Bot users are the usual case, because their permissions often differ from the other members'. Make sure every user that runs the pipeline, bots included, can access the project that hosts the images.

GitLab pipelines in IntelliJ IDEA

Pipelines and Jobs Inbox for GitLab CI, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, shows a failed job with its status, how long it ran and the message GitLab gives for the failure, and opens the job's log in a console viewer at the bottom of the IDE, searchable, following a running job as it writes. You can retry the job from the IDE (Pro). Reading is free; retrying, cancelling and running are Pro (US$1.50 a month, with a 30-day trial).

Get it on JetBrains Marketplace

GITLAB is a trademark of GitLab Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitLab Inc. or JetBrains.

More: GitLab job dropped as stuck or over its timeout · GitLab job log refused or empty · GitLab "could not retrieve the needed artifacts" · GitLab pipeline or job refused (400, 403, 409, 429)