linux下 docker 搭建私有仓库

docker pull registry:2.5

docker run -d --restart=always –privileged=true \
--name registry -p 5000:5000 \
-v /media/disk/registry:/var/lib/registry  \
docker.io/registry:2.5

docker login 127.0.0.1:5000

docker tag hello-world 10.20.26.52:5000/hello-world

docker push 10.20.26.52:5000/hello-world

docker pull 10.20.26.52:5000/hello-world

查询镜像列表: http://registry_ip:port/v2/_catalog
查询镜像详情: http://registry_ip:port/v2/image_name/tags/list



 

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页