Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the list of docker images from Azure private registry

Tags:

docker

azure

I have a linux system where I have installed dockers. I also have a registry on azure for which I have the user name and password. To get a list of docker images from a private registry we can simply use curl command like below:

curl localhost:5000/v2/_catalog

This command I tested when I installed private registry on my machine and it was giving me the list of images which I have in the registry. Now I have azure registry. I can login to it successfully but don't know what command I can run to get the list of docker images. Is this possible.? For example, if I run:

curl myregistry.azurecr.io/v2/_catalog

It shows:

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>  
</html>

How do I get the list of images stored in azure registry from my linux machine

Thanks

like image 675
S Andrew Avatar asked Jan 11 '18 06:01

S Andrew


People also ask

How do I browse the Azure container registry?

Sign in to the Azure portal. Select the Azure Container Registry to which you pushed the Nginx image. Select Repositories to see a list of the repositories that contain the images in the registry. Select a repository to see the image tags within that repository.

Where does Azure Store Docker images?

Azure Container Registry allows you to build, store, and manage container images and artifacts in a private registry for all types of container deployments. Use Azure container registries with your existing container development and deployment pipelines.


1 Answers

You can use the container registry cli for azure:

az acr repository list --name <acrName> --output table

https://docs.microsoft.com/en-us/azure/container-registry/container-registry-get-started-azure-cli

like image 178
yamenk Avatar answered Sep 19 '22 08:09

yamenk