docker run -it -d -p 5000:5000 registry
拉一个仓库的镜像
docker run -it -d -p 5000:5000 /opt/data/registry:/tmp/registry registry
找一个镜像, docker tag ubuntu:18.04 192.168.168.168:5000/test
修改仓库地址为私有库,cat /etc/docker/daemon.json
{
"insecure-registries":["192.168.168.168:5000"]
}