Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you delete a docker image from Artifact Registry? #11339

Open
mattstrain opened this issue Dec 3, 2024 · 0 comments
Open

How do you delete a docker image from Artifact Registry? #11339

mattstrain opened this issue Dec 3, 2024 · 0 comments

Comments

@mattstrain
Copy link

I have worked out how to list images (and also worked out to list and delete maven and npm packages) but I can't work out what the correct way to delete a docker image is?

I have tried using deleteVersionAsync and deleteTag with various combinations of image path and tag or image path with sha etc but none work and the resulting callable fails with an illegal parameter.

For now I have got it working by calling ProcessBuilder and executing the gcloud command manually but surely you can do this using the api?

What is the api call for the equivalent of this:

gcloud container images delete europe-west2-docker.pkg.dev/my-project/docker/my-image@sha256:b123456789 --force-delete-tags --quiet

Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant