Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove a pushed image in Google Container Registry

Is it possible to remove a pushed image from Google Container Registry?

I mean without handling the Google Cloud Storage directory directly.

Thanks!

like image 317
Hernan Avatar asked Jul 20 '15 18:07

Hernan


People also ask

How do I get rid of pushed docker images?

docker rmi removes images by their ID. To remove the image, you first need to list all the images to get the Image IDs, Image name and other details. By running simple command docker images -a or docker images .

How do I push an image into artifact registry?

To push a local image to a Artifact Registry repository, you tag it with the repository name and then push the image. If you are uploading large images, the following limits apply: Upload time. If you authenticate to Artifact Registry using an access token, the token is only valid for 60 minutes.


1 Answers

As explained here you can delete an image from Google Container Registry with the following gcloud command:

gcloud container images delete IMAGE_NAMES [IMAGE_NAMES …] [GLOBAL-FLAG …]
like image 141
Franck Avatar answered Sep 22 '22 06:09

Franck