搭建docker registry 镜像仓库 jobcher 收录于 docker 2021-12-22 约 92 字 预计阅读 1 分钟 次阅读 目录 获取镜像 容器运行 上传容器 搭建 docker registry 镜像仓库 获取镜像 1 docker pull registry:2.7.1 1 docker pull hyper/docker-registry-web 容器运行 1 2 mkdir -p /opt/data/registry docker run -d -p 5000:5000 -v /opt/data/registry:/var/lib/registry --name registry registry:2.7.1 1 2 3 4 5 6 docker run -d -p 8080:8080 --name registry-web --link registry \ -e REGISTRY_URL=http://192.168.99.146:5000/v2 \ -e REGISTRY_TRUST_ANY_SSL=true \ -e REGISTRY_BASIC_AUTH="GjhYGDGi2HhkJB" \ -e REGISTRY_NAME=192.168.99.146:5000 \ hyper/docker-registry-web 上传容器 1 2 3 4 5 6 7 vim /etc/docker/daemon.json { "insecure-registries": ["192.168.99.146:5000"] } docker tag sjtfreaks/hogo-nginx:v1.1 192.168.99.146:5000/sjtfreaks/hogo-nginx:v1.1 docker push 192.168.99.146:5000/sjtfreaks/hogo-nginx:v1.1 Please enable JavaScript to view the comments powered by Valine.