简于形,大于界

Docker Registry

这份快速指南将引导你如何使用Docker Registry。

安装

https://docs.docker.com/registry/
/etc/docker/registry/config.yml
NAS: /var/lib/registry - > /share/DevOps/registry

Docker的安装和设置

容器安装
1docker run -d -p 5000:5000 --name registry registry:2.7

删除镜像

容许删除镜像
1delete:
2  enabled: true
垃圾回收
1/bin/registry garbage-collect /etc/docker/registry/config.yml --delete-untagged
2cd /var/lib/registry/docker/registry/v2/repositories