Docker - как получить список всех тегов docker image: различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) (Новая страница: «=== Docker - как получить список всех тегов docker image === Установить jq для сортировки данных JSON: #...») |
Admin iph (обсуждение | вклад) |
||
(не показаны 2 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
+ | [[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]] | ||
+ | |||
=== Docker - как получить список всех тегов docker image === | === Docker - как получить список всех тегов docker image === | ||
Строка 6: | Строка 8: | ||
Получить список всех тегов для debian: | Получить список всех тегов для debian: | ||
− | # curl 'https://registry.hub.docker.com/v2/repositories/library/debian/tags/'|jq '."results"[]["name"]' | + | # curl 'https://registry.hub.docker.com/v2/repositories/library/debian/tags/' | jq '."results"[]["name"]' |
% Total % Received % Xferd Average Speed Time Time Time Current | % Total % Received % Xferd Average Speed Time Time Time Current | ||
Dload Upload Total Spent Left Speed | Dload Upload Total Spent Left Speed | ||
Строка 22: | Строка 24: | ||
Получить список всех тегов для tomcat: | Получить список всех тегов для tomcat: | ||
− | ~# curl 'https://registry.hub.docker.com/v2/repositories/library/tomcat/tags/'|jq '."results"[]["name"]' | + | ~# curl 'https://registry.hub.docker.com/v2/repositories/library/tomcat/tags/' | jq '."results"[]["name"]' |
% Total % Received % Xferd Average Speed Time Time Time Current | % Total % Received % Xferd Average Speed Time Time Time Current | ||
Dload Upload Total Spent Left Speed | Dload Upload Total Spent Left Speed |
Текущая версия на 20:25, 16 мая 2022
Docker - как получить список всех тегов docker image
Установить jq для сортировки данных JSON:
# apt install jq -y
Получить список всех тегов для debian:
# curl 'https://registry.hub.docker.com/v2/repositories/library/debian/tags/' | jq '."results"[]["name"]' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed "unstable-slim" "unstable-20220509-slim" "unstable-20220509" "unstable" "testing-slim" "testing-backports" "testing-20220509-slim" "testing-20220509" "testing" "stable-slim"
Получить список всех тегов для tomcat:
~# curl 'https://registry.hub.docker.com/v2/repositories/library/tomcat/tags/' | jq '."results"[]["name"]' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed "latest" "jre8-openjdk-slim-buster" "jre8-openjdk-slim-bullseye" "jre8-openjdk-slim" "jre8-openjdk-buster" "jre8-openjdk-bullseye" "jre8-openjdk" "jre8" "jre11-openjdk-slim-buster" "jre11-openjdk-slim-bullseye"