I have configured docker private registry (registry:2 ) and am able to push the images created by me, so that my team can use the same.I have been pushing many images to it successfully.
I would like to know how to list all images in my private registry, is there any command to find out it?
AFAIK this isn’t possible with registry alone , you have to use an external service to index your registry content.
to ease the deployment and administration of your registry, you can look at 2 nice tool
I’m adding support for DockerCloud to GrandCentrall.
It takes git hashes and looks for the corresponding docker images, and deploys them. I need to consult our private repo to see if a git hash has corresponding docker images or not, and ended up with this very very very awful hack:
Yep. I basically create a service, see if it starts up successfully, and then if it does, it exists. If it doesn’t, then it doesn’t exist. Ugh. I spent hours trying to make a crawler to hit the docker cloud website… the react front end defeated me!
Docker search registry v2 functionality is currently not supported at the time of this writing. See discussion since Feb 2015: “propose registry search functionality #206” https://github.com/docker/distribution/issues/206
I basically installed a web server, php, and whipped up a quick index.php page that basically parsed /var/lib/registry/docker/registry/v2/repositories and then looped through that list in the _manifest/tags directory to get the tags. Then created it all in a simple table that had image name, tag, and the string used to pull the image to copy/paste into Kubernetes deployments.
Yes, it has a web server but as noted above, it’s not quite as easy as a web page to get the information.
I pushed my docker images to my private registry and was able to list the pushed images using below commands: (i am running my private Docker registry on 5005 port using command => sudo docker run -d -p 5005:5000 --name my-registry registry:2)