搭建的私有docker repository看不到push的镜像
搭建了一个docker私有镜像仓库,地址是109.105.115.109:5000。
在另外一台docker host上build了一个镜像,并打上了tag,然后push到私有仓库,显示push成功。我在该docker host上删除该镜像,然后又从私有镜像仓库pull,也能pull成功。
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 6a2f32de169d 6 weeks ago 117.2 MB
registry.access.redhat.com/rhel7/pod-infrastructure latest 34d3450d733b 3 months ago 205 MB
docker tag ubuntu 109.105.115.109:5000/ubuntu
docker push 109.105.115.109:5000/ubuntu
The push refers to a repository
ab4b9ad8d212: Pushed
57e913ee49e5: Pushed
2ea6deead2b0: Pushed
7cbd4b94e525: Pushed
e86a0c422723: Pushed
latest: digest: sha256:c2bbf50d276508d73dd865cda7b4ee9b5243f2648647d21e3a471dd3cc4209a0 size: 1357
但是,我登陆到私有镜像仓库所在的服务器,执行docker images,却不能看到刚才push过来的镜像。我再查看/var/lib/docker/aufs下的目录,也看不到对应的镜像。
1 个回复
an
赞同来自: styshoo
docker exec -it YOURregistryID ls /var/lib/registry/docker/registry/v2/repositories