简体   繁体   中英

Is it possible to set blanket resource limit for ALL containers started by docker?

I run docker as part of a larger system and some services are ran on bare metal while other are in docker containers. Docker services are created by users at run time and quite often they consume all system resources causing OOM killer start shooting at random. What I ideally want to achieve is to limit ALL processes started by docker to 90% of CPU and 50% or RAM. There is no shortage of information on how to limit those resources on per container basis but I rather want to set them on "per docker service" basis and let containers run loose. Is it possible? Does anyone found a solution?

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