How can I cleanly remove a container image from the Google Container Registry?

I have pushed container images using gcloud docker push to the Google Container Registry. Two questions:

How do I cleanly remove a pushed container image from the registry? (I know I can remove a tag to an image and make it not accessible anymore.)

  • Liberty Profile Docker for last version available?
  • Docker Backup and restore postgres
  • How to dockerized java microservices efficiently
  • Simple Træfɪk reverse proxy installation
  • what is 'z' flag in docker container's volumes-from option?
  • stub.GetHistoryKeys() reporting GetHistoryKeys() function undefined. when tried go build on my Chaincode
  • There are a bunch of Docker layers that an image brings with it. I want to remove all the unused layers with an image deletion.

  • Snapshot Options When Unable to Set Up LVM
  • How the docker git repo is showing different tags in pull requests like status/need-review
  • using docker stack deploy on oracle linux 6
  • What benefits does the Marathon package bring to DC/OS?
  • How to use source in docker?
  • Managing Docker images over time
  • One Solution collect form web for “How can I cleanly remove a container image from the Google Container Registry?”

    UPDATE: You can now delete individual container images straight from the UI.

    1. Go to the Container Registry page.
    2. You should see a list of container images. Click the one you want to delete.
      Container Registry
    3. Select one or more tags, and click the delete button.
      Select and Delete images

    As of Nov 2015: There is no way to currently delete a single container image from the registry cleanly. Right now, it is basically all or nothing. The GCR team is working on this!

    Original Answer: I can’t think of an easy way to delete individual images. You can delete ALL of the images by deleting the Cloud Storage bucket with gsutil rb gs://artifacts.<PROJECT-ID> You can also use the storage browser and try to delete individual parts ( but you would have to know the Docker hashes for each layer!

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.