I’m trying to validate how many concurrent ‘run’ commands I can issue to the docker daemon to create and start multiple containers simultaneously.
All in all it’s working well, but once in a while the daemon seems to be stuck for 10-30 seconds on creating the container.
The docker log file simply shows this when stuck:
[info] POST /v1.15/containers/create
[c9cadee1] +job create()
I’m running a simple bash loop to launch an nginx container:
for (( i=1; i <= 100; i++ ))
do
docker run -d -P nginx
done
Every ~40 iterations or so it seems that the daemon is stuck. It eventually releases and continues to launch containers successfully.
Does anyone have an idea as to why it stalls, or how I can debug it?
I’ve just run this on my local box with Docker v1.4.1, and its not happening here - it might be interesting to see if Docker v1.4.1 changes it for you too.