/opt/data/registry
/registry
[root@youx-pub registry]#
发现
[root@youx-pub repositories]# pwd
/var/lib/docker/volumes/1522d54c954c755250cb71686cacd9714cd3d0f0c706ec18c1e490c7881fe713/_data/docker/registry/v2/repositories
[root@youx-pub repositories]# ls
centos7-jdk8-nginx nginx
[root@youx-pub repositories]#
所以设置镜像仓库的位置为:
[root@master registry]# export REGISTRY_DATA_DIR=/var/lib/docker/volumes/1522d54c954c755250cb71686cacd9714cd3d0f0c706ec18c1e490c7881fe713/_data/docker/registry/v2
地址就是咱们挂载地址:
看一下相关标签:
[root@youx-pub registry]# curl http://192.168.18.162:5000/v2/_catalog
{"repositories":["youx-centos7.5.1804","youx-centos7.5.1804-v1.0"]}
[root@youx-pub registry]# curl http://192.168.18.162:5000/v2/youx-centos7.5.1804-v1.0/tags/list
{"name":"youx-centos7.5.1804-v1.0","tags":["latest"]}
[root@youx-pub registry]#可以之后我们直接删除:
[root@master registry]# delete_docker_registry_image --image youx-centos7.5.1804-v1.0:latestINFO [2017-04-08 11:39:39,793] Deleting /registry/docker/registry/v2/repositories/nginx/_manifests/tags/v1
咱们再看一下本地仓库的镜像有几个:
[root@master registry]# curl http://192.168.18.162:5000/v2/_catalog
{"repositories":["youx-centos7.5.1804"]}您可能感兴趣的文章:Docker Registry 私有仓库搭建详细步骤Docker搭建本地私有仓库的详细步骤docker 查询或获取私有仓库(registry)中的镜像的方法Docker 教程之私有仓库详解Docker上传镜像至私有仓库的方法示例详解centos7 docker1.12安装私有仓库详解Docker私有仓库最简便的搭建方法详解docker私有仓库搭建与使用实战详解CentOS 7 : Docker私有仓库搭建和使用Docker私有仓库的搭建和界面化管理详解










