docker 私有仓库搭建
https://www.cnblogs.com/subendong/p/9029495.html
docker pull registry
docker run -d -v /registry:/var/lib/registry -p 5000:5000 --restart=always --privileged=true --name registry registry:latest
docker tag hello-world 192.168.6.79:5000/hello-world:latest
vi /etc/docker/daemon.json
{
"registry-mirrors": ["http://hub-mirror.c.163.com"],
"registry-mirrors": ["https://njrds9qc.mirror.aliyuncs.com"],
"insecure-registries":["192.168.6.79:5000"]
}
systemctl daemon-reload
systemctl restart docker
docker push 192.168.6.79:5000/hello-world:latest
ls /registry/docker/registry/v2/repositories
curl http://192.168.6.79:5000/v2/_catalog