Docker Community Forums

Share and learn in the Docker community.

Reduce execution time of docker run


(Tufailm1) #1

Hi
When we start a container e.g nginx we execute this command:
docker run -d --name container-name -p 80:80 nginx

If we check its execution time, it appears to be near 1.3 sec.

time docker run -d --name test -p 80:80 nginx
ec8d808dac8df30c7e058705b6effa27a176f31a44fc9b251ec968deae187878

real 0m1.304s
user 0m0.017s
sys 0m0.009s

It doesn’t matter even if we use a light image such as alpine. Can someone tell how we can reduce its execution time to some 0.25-0.3 sec as i want to stop and restart application so delays matter there.

Thanks

BR