1. // 搭建私服
    2. 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
    3. // push镜像
    4. docker push 192.168.10.222:5000/local-ubuntu
    5. // 查看镜像
    6. curl http://192.168.10.222:5000/v2/_catalog
    7. curl http://192.168.10.222:5000/v2/local-ubuntu/tags/list
    8. // 进入私有仓库容器
    9. // 查看私有仓库路径的空间
    10. // 上传镜像的Etag
    11. curl --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
    12. -I \
    13. -X HEAD http://192.168.10.222:5000/v2/local-ubuntu/manifests/latest
    14. // 删除本地数据
    15. // 发送请求,删除镜像的元数据
    16. curl -I -X DELETE http://192.168.10.222:5000/v2/local-ubuntu/manifests/sha256:92c414f2cf966fd4c6d60bc71180737bf878eeca3654cad82991a1e02d885d37
    17. // 垃圾回收
    18. docker exec -it 340b4d267622 bin/registry garbage-collect /etc/docker/registry/config.yml