配置文件
vi /usr/lib/systemd/system/docker.service
#修改ExecStart
## graph是docker存储地址, registry是docker镜像地址, bip是docker网段地址
ExecStart=/usr/bin/dockerd --graph=/bgi/docker_image_container --registry-mirror=http://019a7061.m.daocloud.io --insecure-registry 192.168.31.103:6600 --bip=172.20.0.1/16
#重启
systemctl daemon-reload
systemctl restart docker
私有库
docker run -d -ti --restart always --name docker-hub -p 6600:5000 -v /bgi/registry/docker:/var/lib/registry registry
curl 192.168.31.103:6600/v2/_catalog
curl http://192.168.31.103:6600/v2/[image_name]/tags/list