瀏覽代碼

Merge pull request #16833 from sunyuan3/cpu-shares

Add description for "--cpu-shares=0".
moxiegirl 9 年之前
父節點
當前提交
734c9d2f67
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      docs/reference/run.md

+ 2 - 1
docs/reference/run.md

@@ -800,7 +800,8 @@ can be modified by changing the container's CPU share weighting relative
 to the weighting of all other running containers.
 to the weighting of all other running containers.
 
 
 To modify the proportion from the default of 1024, use the `-c` or `--cpu-shares`
 To modify the proportion from the default of 1024, use the `-c` or `--cpu-shares`
-flag to set the weighting to 2 or higher.
+flag to set the weighting to 2 or higher. If 0 is set, the system will ignore the
+value and use the default of 1024.
 
 
 The proportion will only apply when CPU-intensive processes are running.
 The proportion will only apply when CPU-intensive processes are running.
 When tasks in one container are idle, other containers can use the
 When tasks in one container are idle, other containers can use the