Hi, I am not sure I am posting this in the right category.
I have realized running containers with the volume flag (e.g. -v /home) increases up to almost 10 times the time it takes for it to start, but only in some hosts. Let me explain:
In my Ubuntu laptop, running:
docker run -v /home -h codelearn -m=100m -c=10 -d -p 7681 -p 3000 image_name
takes around 3.5 seconds.
However, in my Centos 7 server, it takes around 17 seconds. If I remove the volume flag, it takes less than 2 seconds (in the Centos host).
What could be the reason of this? What could make one host so much faster than the other? Is there any way I can speed this up? going from 2s to 17s is quite a lot.
Thanks!