/registry-image-check

A small python script to access a docker registry using token authorization and check whether an image exists

Primary LanguagePythonApache License 2.0Apache-2.0

Registry Image Checker

This is a CLI to access a docker registry using token authorization and check whether an image exists. It prints the found tags as json. It is based on the script provided by Harbor.

Usage

./registry-image-check.py <registry/image:tag> <username> <password>

The tag is optional. If no tag is given all tags are listed.

Return value

  • 0 if at least one image was found.
  • 1 if something goes wrong (python throws an exception).
  • 2 if no image/tag was found.