1、列出docker registry下的所有容器仓库
curl https://`hostname`:5000/v2/_catalog -u username:password -k -s | jq
查询结果示例:
返回的是该docker registry中的所有容器仓库
{
"repositories": [
"diamond/gpu-admission",
"diamond/gpu-manager",
"diamond/stpu-device-plugin",
"diamond/stpu-exporter",
"diamond/vgpu-mutating-admission-webhook",
"diamond-dev/netchecker",
"docker.io/solsson/burrow",
..........
2、列出某个仓库下的所有tags
PS:
Example-Repository/Example-Images
为容器仓库名称下列命令的含义是列出
Example-Repository
仓库下Example-Images
这个镜像的所有tag
curl https://`hostname`:5000/v2/Example-Repository/Example-Images/tags/list -u username:password -k -s | jq
查询结果示例:
{
"name": "Example-Repository/Example-Images",
"tags": [
"v4.0.0-a926e2a-amd64-stpu",
"v3.2.0-8edb68d-amd64-cuda11",
"V4.2.0-081a233-amd64-cuda11",
"V4.2.0-681cac5-amd64",
"v3.2.0-2877f44-amd64-cuda11",
"v4.1.0.dirty-e685744-amd64-mlu270",
"V4.2.0-8cdfda3-amd64-cuda11"
]
}
标签:diamond,amd64,Repository,cuda11,registry,Example
From: https://www.cnblogs.com/zgjj/p/16647193.html