Living a Simple Life is a Happy Life

有饭吃,自由自在,就非常开心

How to Limit Exists Running Docker Container Cpus

| Comments

1
docker update --cpu-period=100000 --cpu-quota=40000  <container>

意思是cpu时间切分为100000份,指定容器占用40000份,即cpu占用率最高40%

Comments