1,docker run -d -p 5000:5000 -v `pwd`/data:/var/lib/registry --restart=always --name registry registry
2,在daemon.json中配置insecure-registries:[registry.com:5000] -》》在centos环境中,/etc/docker/daemon.json
就可以push,pull
3,curl http://localhost:5000/v2/_catalog