Skip to content
Latchkey

Bitbucket "Failed to pull image" / Image Not Found

Bitbucket could not pull the Docker image you set for the step. Either the name/tag is wrong, the image is private and has no credentials, or the registry pull hit a transient error.

What this error means

The step never reaches your script - it fails at setup with a "failed to pull image" or "manifest unknown" error. A bad tag fails every time; a registry blip fails intermittently and passes on retry.

Bitbucket log
Failed to pull image "myorg/builder:lateset":
manifest for myorg/builder:lateset not found.

Common causes

Wrong image name or tag

A typo in the repository or tag (lateset vs latest), or a tag that no longer exists, makes the registry return "manifest unknown".

Private image without credentials

A private registry image needs username/password (or AWS/GCR auth) declared on the image. Without it, the pull is unauthorized.

How to fix it

Use a correct, existing tag

bitbucket-pipelines.yml
image: myorg/builder:latest
# or pin a digest for reproducibility
# image: myorg/builder@sha256:...

Authenticate to a private registry

Provide registry credentials via secured variables on the image definition.

bitbucket-pipelines.yml
image:
  name: myorg/builder:latest
  username: $DOCKER_USERNAME
  password: $DOCKER_PASSWORD

How to prevent it

  • Pin images to a stable tag or digest you control.
  • Store registry credentials as secured variables.
  • Mirror critical base images so an upstream outage does not block CI.

Frequently asked questions

What causes ""Failed to pull image""?
A typo in the repository or tag (lateset vs latest), or a tag that no longer exists, makes the registry return "manifest unknown".
How do I fix "Failed to pull image"?
Use a correct, existing tag
Can Latchkey fix this automatically?
Yes. Latchkey runs your GitHub Actions on managed runners that detect this failure, apply the fix, and retry the job automatically - self-healing is on by default.

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card