配置docker信任仓库
此过程将私仓配置到docker信任仓库列表中
vi /etc/docker/daemon.json
将宿主机ip添加至信任列表中
{"insecure-registries":["192.168.101.205:5000","192.168.101.206:5000"]}
重启docker
systemctl daemon-reload
systemctl restart docker
三、上传镜像至私服
从docker远程镜像中下载了一个jdk镜像
标记此镜像为私仓镜像
docker tag ascdc/jdk8 192.168.101.205:5000/jdk:8
将被标记的jdk镜像推送至私仓
docker push 192.168.101.205:5000/jdk:8
挂载目录可查看当前私仓的镜像
具体路径:挂载目录/docker/registry/v2/repositories/
我这里的具体路径为:/usr/local/soft/registry/docker/registry/v2/repositories/