Main Menu

Search

PODMAN: Curl Command To List Container Images And Their Tags From Podman Private Registry Running On Remote Host

Following curl command can be used to list container images and their tags from podman private registry running on remote host. In below command replace private-registry with the hostname of the podman private registry host and 5000 with the port number of private podman registry.

curl https://private-registry:5000/v2/_catalog | jq '.repositories[]'  | sort  | xargs -I _ curl -s -k -X GET https://private-registry:5000/v2/_/tags/list

If you can connecting the insecure private registry using self signed certificates, following curl command with --insecure option can be used.

curl --insecure https://private-registry:5000/v2/_catalog | jq '.repositories[]'  | sort  | xargs -I _ curl -s -k -X GET https://private-registry:5000/v2/_/tags/list

Below is the example console output of above command.

{"name":"olcne","tags":["latest"]}
{"name":"olcne/alertmanager","tags":["v0.24.0"]}
{"name":"olcne/apiserver","tags":["v3.27.0","v3.25.1-2"]}
{"name":"olcne/ceph","tags":["v1.12.3","v1.11.6-2","v17.2.5-2","v1.10.9-1"]}
{"name":"olcne/cephcsi","tags":["v3.7.2-1","v3.9.0","v3.7.2-2"]}
{"name":"olcne/cert-manager-acmesolver","tags":["v1.14.5"]}
{"name":"olcne/cert-manager-cainjector","tags":["v1.16.3","v1.14.5","v1.9.1"]}
{"name":"olcne/cert-manager-controller","tags":["v1.16.3","v1.14.5","v1.9.1"]}
{"name":"olcne/cert-manager-startupapicheck","tags":["v1.16.3","v1.14.5"]}
{"name":"olcne/cert-manager-webhook","tags":["v1.9.1","v1.16.3","v1.14.5"]}
{"name":"olcne/cert-manager-webhook-oci","tags":["v1.1.0"]}


Keywords:

Remote external registries private mirror mirroring containers image connecting

No comments:

Post a Comment