How to limit max number of containers running per node in docker swarm

Viewed 301

I can set max_replicas_per_node in the docker-compose.yml file, but that limits the service, and if I'm running more than one service simultaneously, the number of containers running per node exceeds my limit.

Is there any way to set max_replicas_per_node for swarm?

0 Answers
Related