$dockerrun -d -p 5000:5000 --restart always --name registry registry:2
测试:
1、给本地镜像打标记
docker taghello-world localhost:5000/hello-world
2、上传镜像至本地仓库
dockerpush localhost:5000/hello-world
3、删除本地镜像
docker rmilocalhost:5000/hello-world
4、从本地仓库下载镜像
dockerpull localhost:5000/hello-world
5、查看本地仓库镜像存储情况
curl127.0.0.1:5000/v2/_catalog