当前位置: 动力学知识库 > 问答 > 编程问答 >

What is the created time in docker images command?

问题描述:

What is the CREATED time exactly when you give this command?

docker images

It gives the time like 3 months ago, or 9 days ago.

Is it the time it was uploaded to docker hub?

Even for the locally created images, it shows like 15 minutes ago, while I had created just a minute ago.

网友答案:

It should be the date of the latest docker build, as defined in image/image.go.

You can see its exact value with

docker inspect -f '{{ .Created }}' hello-world

If you are in a VM, the timestamp might not be precise for local images, as your VM clock might not be precisely synchronized (by typing 'date', I see mine is synchronized, but on UTC: one hour shift).

分享给朋友:
您可能感兴趣的文章:
随机阅读: