Is there a way to restrict the number of dockers instances running at a moment and keep the other instances in quee

June 22, 2016 645 views

I have a situation where only one docker should run at a time and the remaining dockers instances which will get started via bash scripts should wait in que and execute one after another. Can someone help me.

1 comment
  • Instead of sequencing your docker startup with bash scripts, have you considered using docker-compose instead?

    Docker is a great tool, but to really take full advantage of its potential it's best if each component of your application runs in its own container. For complex applications with a lot of components, orchestrating all the containers to start up and shut down together (not to mention talk to each other) can quickly become unwieldy. Docker Compose makes managing Docker containers as one group really easy.
Be the first one to answer this question.