christoph ender's

blog

sunday the 24th of march, 2024

accessing a private docker registry

While pushing and pulling to a private docker registry can be done via built-in methods, examining the contents apparently can only be done using separate HTTP queries.

A list of repositories can be obtainted by using curl:

curl https://my-registry.example.org/v2/_catalog \
  -u registryuser:password

For a given repository name, the list of tags can be accessed in the following way:

curl https://my-registry.example.org/v2/repo-name/tags/list \
 -u registryuser:password