Я пытаюсь найти один конкретный тег для изображения Docker. Как я могу сделать это в командной строке? Я стараюсь избегать загрузки всего и удаления ненужных изображений.
В официальном выпуске Ubuntu, https://registry.hub.docker.com/_/ubuntu/, есть несколько тегов (релиз для него), тогда как при поиске в командной строке
[email protected]:~$ docker search ubuntu | grep ^ubuntu
ubuntu Official Ubuntu base image 354
ubuntu-upstart Upstart is an event-based replacement for ... 7
ubuntufan/ping 0
ubuntu-debootstrap 0
Также с помощью search
в командной строке https://docs.docker.com/engine/reference/commandline/search/, не знаете, как это может работать?
Возможно ли это в команде docker search
?
Если я использую необработанную команду для поиска через API реестра Docker, то информация может быть получена:
$ curl https://registry.hub.docker.com//v1/repositories/ubuntu/tags | python -mjson.tool
[
{
"layer": "ef83896b",
"name": "latest"
},
.....
{
"layer": "463ff6be",
"name": "raring"
},
{
"layer": "195eb90b",
"name": "saucy"
},
{
"layer": "ef83896b",
"name": "trusty"
}
]