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

无人久伴 提交于 2019-12-05 10:49:25
Sandeep Dinesh

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.

  3. Select one or more tags, and click the delete button.

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>.appspot.com. You can also use the storage browser and try to delete individual parts (https://console.developers.google.com/storage/browser/artifacts..appspot.com) but you would have to know the Docker hashes for each layer!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!