API for redhat base image to get values of image tags?
Hi ,
Do we have an API to programmatically get the value of image tags for the below image?
https://access.redhat.com/containers/?tab=tags&get-method=registry-tokens#/registry.access.redhat.com/rhel7
Use case:
Grab the later version if a new tag version is available.
I'm looking for something like below:
wget -q https://registry.hub.docker.com/v1/repositories/debian/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'
The above solution is from the stackoverflow question:
https://stackoverflow.com/questions/28320134/how-can-i-list-all-tags-for-a-docker-image-on-a-remote-registry
I did
wget https://access.redhat.com/containers/?tab=tags&get-method=registry-tokens#/registry.access.redhat.com/rhel7
Unfortunately, it gives a lot of redundant data which does not help.
I appreciate any lead.
Thank you