So, after some hacking, I used the following tools, using tools curland jq:
curl -X GET http://registry:5000/v2/<IMAGE>/manifests/<TAG> \
| jq -r '.history[].v1Compatibility' \
| jq '.created' \
| sort \
| tail -n1
This seems to work, but I really don't know how to interpret the v1 compatibility view, so I don't know if I really get the correct number from this.
Comments on this are welcome!
source
share