#查询镜像
curl -u admin:123456 -X GET http://10.12.13.14:5000/v2/_catalog
#查询镜像版本
curl -u admin:123456 -X GET http://10.12.13.14:5000/v2/export/redis/tags/list
#查询镜像摘要digest
curl -u admin:123456 -I -H “Accept: application/vnd.docker.distribution.manifest.v2+json” http://10.12.13.14:5000/v2/export/redis/manifests/hari_v2.2
#方式1、删除镜像–按digest–上传批次删除
curl -u admin:123456 -I -X DELETE http://10.12.13.14:5000/v2/export/monitor/manifests/sha256:9815a0d456dbbef05a5fd5efe4406db003d32a2f91de40f01b62457562e1d7f6
#方式2、删除整个软件所有版本 oss共享存储
~/ossutil64 rm oss://docker/registry/v2/repositories/export/redis
如果是本地文件,rm -rf 对应目录如/data/docker/registry/v2/repositories/export/redis
#2种方式最后都需要调用registry gc功能清理无效blobs
docker exec registry_registry_1 bin/registry garbage-collect /etc/docker/registry/config.yml