kartoon
kartoon

Reputation: 1194

How to find build time of docker image?

I tried docker image history, docker image inspect but could not find how long it took to build an image locally on my system.

Though I found the image created time, not when it started building.

Is there any docker command that could help find it?

Upvotes: 1

Views: 1225

Answers (1)

Nicolas Martinez
Nicolas Martinez

Reputation: 86

I don't think the build time is recorded in the image. I think your best bet is to measure it yourself.

time docker build -t <tag> .

Or I saw other more granular ways to do it in this thread

Upvotes: 2

Related Questions