日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無先后,達(dá)者為師

網(wǎng)站首頁 編程語言 正文

docker registry私庫鏡像查看與刪除

作者:正在攀登的小蝸牛 更新時(shí)間: 2022-04-01 編程語言

1、列出所有的鏡像

curl -X GET http://192.168.37.100:5000/v2/_catalog| jq

2、列出指定鏡像的所有標(biāo)簽
2.1查看鏡像busybox下的tag

curl -X GET http://192.168.37.100:5000/v2/busybox/tags/list

3、使用delete-docker-registry-image進(jìn)行刪除鏡像

3.1安裝方法
curl https://raw.githubusercontent.com/burnettk/delete-docker-registry-image/master/delete_docker_registry_image.py | sudo tee /usr/local/bin/delete_docker_registry_image >/dev/null
sudo chmod a+x /usr/local/bin/delete_docker_registry_image
3.2配置鏡像倉庫目錄
 

export REGISTRY_DATA_DIR=/opt/data/registry/docker/registry/v2
3.3檢查會(huì)刪除那些數(shù)據(jù)
delete_docker_registry_image --image testrepo/awesomeimage --dry-run
3.4刪除鏡像
delete_docker_registry_image --image testrepo/awesomeimage
3.5刪除鏡像tag
delete_docker_registry_image --image testrepo/awesomeimage:supertag

原文鏈接:https://blog.csdn.net/qq_21127151/article/details/123839740

欄目分類
最近更新