Search code examples
dockerdocker-machinedocker-swarm

limit swarm from creating more than X number of containers per node


is there any to limit swarm from creating for example 20 number of containers per worker. so, one worker wouldn't have more than 20 containers for better QoS (Quality of service), this'll also prevent overcommitting host's resources?

thanks


Solution

  • EDIT

    This is now implemented and it will be released as part of Docker 19.03.

    You can see how it works with stack on docker/cli#1410 and with without stack (docker service ...) on docker/cli#1612

    Source


    Actually no.

    There is a Github issue who is talking about it.