Is it possible to remove a pushed image from Google Container Registry?
I mean without handling the Google Cloud Storage directory directly.
Thanks!
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 .
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.
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 …]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With