简体   繁体   中英

Limit RAM usage of docker on linux

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..

As explained by theDocker Official Guide you can set limits on memory and cpu (this one only for swarms ).

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM