docker创建本地仓库
1.生成rsa认证文件
#注意:当前目录下要存在conf文件夹
openssl req -new -newkey rsa:4096 -days 365 -subj "/CN=location" -nodes -x509 -keyout conf/auth.key -out conf/auth.cert
2.搭建docker本地仓库
#查询registry镜像
docker search registry
#拉取registry镜像
docker pull registry
#修改daemon.json 添加配置参数 "insecure-registries":["127.0.0.1:5000"]
vim /etc/docker/daemon.json