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.
./registry-image-check.py <registry/image:tag> <username> <password>
The tag
is optional.
If no tag
is given all tags are listed.
0
if at least one image was found.1
if something goes wrong (python throws an exception).2
if no image/tag was found.