Query related to docker commands

时间:2018-06-20 05:01:06

标签: docker containers

Is there any way to find the time in milliseconds it takes for docker run/pull command to execute?

docker run -d -p 5000:8443 imagerepo\imagename:version

docker pull imagerepo\imagename:version

1 个答案:

答案 0 :(得分:0)

You could just use time:

$ time docker pull imagerepo\imagename:version

EDIT:
To answer the question in the comments, for windows, you can use 's Measure-Command:

Measure-Command {start-process docker pull imagerepo\imagename:version -wait}