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 container exits immediately even with Console.ReadLine() in a .net core console application
  • composer install fails when unable to see mysql database
  • docker-machine create node without tls verification
  • Using environment variables post docker container linking in java
  • Build image using docker file?
  • Docker installation on Ubuntu 12.04 -> cannot connect to daemon
  • Kubernetes Pod Creation Speed
  • Persisting a dockerized WordPress (with LAMP stack)
  • “Error Checking TLS connection: Host is not running” from docker-machine when SSHing into Windows host
  • dockerd --add-runtime vs. docker-container --runtime
  • docker postgres failed to start with specified port
  • Docker API : Show container logs in a webpage
  • 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.