[PLUG] How to get timestamp of remote files in curl command using jq
Amey
sco1984 at gmail.com
Fri Aug 23 12:07:23 IST 2024
Hello,
I am trying to get the timestamp of a docker image tag from a remote
docker repo using curl.
I am able to get the tag list but unable to find the command to get a
time stamp.
My command = curl -X GET
https://docker-repo.mycompany.com/v2/product1/tags/list | jq -r
'.tags[]' | sort -r | head -n 3
Output =
2024.6.2
2024.6.1
2024.4.1
I tried to ask the question to chatgpt variants but the suggestions
are not helping hence thought of asking the question to pluggies :-)
Thanks.
Regards,
Amey.
More information about the plug-mail
mailing list