// 搭建私服docker run -d -p 5000:5000 -v /app/developers/wells/docker/registry:/var/lib/registry -v /app/developers/liq/docker/registry/config.yml:/etc/docker/registry/config.yml --name getui-registry registry// push镜像docker push 192.168.10.222:5000/local-ubuntu// 查看镜像curl http://192.168.10.222:5000/v2/_catalogcurl http://192.168.10.222:5000/v2/local-ubuntu/tags/list// 进入私有仓库容器// 查看私有仓库路径的空间// 上传镜像的Etagcurl --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \ -I \ -X HEAD http://192.168.10.222:5000/v2/local-ubuntu/manifests/latest// 删除本地数据// 发送请求,删除镜像的元数据curl -I -X DELETE http://192.168.10.222:5000/v2/local-ubuntu/manifests/sha256:92c414f2cf966fd4c6d60bc71180737bf878eeca3654cad82991a1e02d885d37// 垃圾回收docker exec -it 340b4d267622 bin/registry garbage-collect /etc/docker/registry/config.yml