question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

artifact registry docker image for cml runner

See original GitHub issue

I’m trying out a cml runner on GCP using Gitlab. I have a working file that starts up an instance with dvcorg/cml:latest docker image.

Now I want to change the docker image for my own that adds in some helper utilities specific to my team. I’m hosting the image on artifact registry in Google cloud and I have granted the cloud-permission-set access to the container registry.

However my job fails with the error:

ERROR: Job failed: failed to pull image "us-west3-docker.pkg.dev/<myproject>/containers/cml:latest" with specified policies [always]: Error response from daemon: Head "https://us-west3-docker.pkg.dev/v2/<myproject>/containers/cml/manifests/latest": denied: Permission "artifactregistry.repositories.downloadArtifacts" denied on resource "projects/<myproject>/locations/us-west3/repositories/containers" (or it may not exist) (manager.go:235:0s)

@dacbd confirmed he was able to reproduce and has a workaround for github.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
dacbdcommented, Aug 24, 2022

cml runner / gitlab-ci access to private GCP registries much like AWS/ECR’s docker-credentials-login-ecr

1reaction
shortcipher3commented, Sep 7, 2022

Found my problem, I was missing the scopes on this line:

--cloud-permission-set=<my_account>@<my_project>.iam.gserviceaccount.com

The working version is:

--cloud-permission-set=<my_account>@<my_project>.iam.gserviceaccount.com,scopes=storage-rw,datastore

I thought my service account permissions would be sufficient.

Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

runner | CML
One or more (comma-delimited) labels for this runner [default: cml ]. ... Registry & GCP's Artifact Registry (to push and pull custom docker...
Read more >
Quickstart: Store Docker container images in Artifact Registry
Artifact Registry provides a single location for managing private packages and Docker container images. This quickstart shows you how to:.
Read more >
Build the New Docker Image - Cloudera Documentation
This topic shows you how to use Docker to build a custom image. A new custom Docker image can be built on any...
Read more >
Container Registry · iterative.ai / cml-runner-example - GitLab
There are no container images stored for this project. With the Container Registry, every project can have its own space to store its...
Read more >
Docker | MLEM
Building a docker image from the model or preparing a folder ready for running docker build in it. Requirements. pip install mlem[docker] #...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found