How can I speed up:
docker run and
docker exec commands?
Running command takes 0.02s user time, 0.02s sys time (that would be OK in my case), but around 0.5s real time each (not acceptable).
$ time sudo docker run --cap-add SYS_ADMIN -i -t --memory=100000k --memory-swap=100000k -d -w /tmp -v /home/asd:/tmp my_image 187d****5037 sudo docker run --cap-add SYS_ADMIN -i -t --memory=100000k -d -w /tmp -v 0,02s user 0,02s system 6% cpu 0,496 total
Can I somehow speed up process of running container or at least understand why is this time wasted?
my_image is created from
ubuntu and the image built takes around 800 MB. But from what I checked it does not matter too much - reducing size image to 200 MB does not change execution time of above command.