In windows we can specify the RAM limit for WSL thus limiting the RAM usage of docker as a whole.
Can i do something similar in linux?
Google search only shows way to limit the usage of induvudual containers.
Thanks in advance..
CodePudding user response:
As explained by the Docker Official Guide you can set limits on memory and cpu (this one only for swarms).
CodePudding user response:
You can limit memory and CPU on docker daemon with help of systemd unit:
https://unix.stackexchange.com/questions/537645/how-to-limit-docker-total-resources