I want to calculate actual time taken by docker to start , stop a container

I have installed docker on my ubuntu 14.04 machine and able to perform operation like start stop commit on container . but i am not able to find any mechanism to calculate actual time taken by docker to perform all operation.
please help me to provide solution to calculate actual time in docker

  • Docker impossible to link nginx container with php-fpm container
  • terraform provider + docker registry v2 = 404
  • Kubernetes AWS deployment can not set docker credentials
  • docker-compose doesn't build image from latest commit of git repository
  • Logging from one docker container to another
  • Rails controller caching when using docker container (dev)
  • Error: docker daemon is not running. [/bin/lib/functions.plugin.sh:93]
  • Progressively migrating to Docker in production
  • MSSQL Server for Linux Docker Versions
  • Docker: Get host username from UID via shared PID namespace
  • Docker build inside kubernetes pod fails with “could not find bridge docker0”
  • Script test to see if a tool is already loaded?
  • One Solution collect form web for “I want to calculate actual time taken by docker to start , stop a container”

    Try simply using:

    time {command}
    

    Example:

    > time docker run busybox echo
    
    real    0m0.344s
    user    0m0.003s
    sys     0m0.005s
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.