Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 621 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 621 Bytes

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.