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++ ))
docker run -d -P nginx
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?