Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check when was a docker image pulled?

I want to know when I pulled a certain image, when you run docker images The Created field appear but the date that the image was pulled don't.

like image 267
Said Saifi Avatar asked Mar 10 '23 23:03

Said Saifi


1 Answers

If you installed docker-engine from official repositories on your linux, it should be installed in /var/lib/docker, for your own configuration, find the respective path.

There is /var/lib/docker/image/aufs/repositories.json file where docker stores images with their sha256 values.

cat /var/lib/docker/image/aufs/repositories.json

Find the image you are looking after and copy it's sha256 hash somewhere.

Then:

ls /var/lib/docker/image/aufs/imagedb/content/sha256 -lash 

Find the sha265 value you found in repositories.json then look at the date.

like image 138
Farhad Farahi Avatar answered Mar 13 '23 16:03

Farhad Farahi