Can Docker Engine run containers in parallel

If I have scripts that run docker launch commands in parallel, the docker mechanism seems to process these commands sequentially. Since starting a minimum image of a container with a โ€œdocker stopperโ€ takes about 100 ms to start, does this mean that issuing commands parallel to starting 1000 containers will take the docker engine 100 ms x 1000 = 100 s or almost 2 minutes? Is there any reason why the docker engine works in parallel, rather than in parallel? How do people get around this?

+5
source share
1 answer

How do people get around this?

a / They do not start 1000 containers at the same time b / if they do, they can use the cluster management system, for example, the docker role> to manage the whole process c / they start 1000 containers in advance to take into account the start time.

True parallelization of the docker run can be difficult, as some of these commands may depend on other containers that will be created / launched first (e.g. docker run --volumes-from=xxx )

+3
source

All Articles