Skip to content

Commit fff420f

Browse files
authored
Merge pull request #160 from mohuk/patch-1
Correction of CPU Shares flag
2 parents 4a332d9 + a259e68 commit fff420f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ You can limit CPU, either using a percentage of all CPUs, or by using specific c
118118
For example, you can tell the [`cpu-shares`](https://docs.docker.com/engine/reference/run/#/cpu-share-constraint) setting. The setting is a bit strange -- 1024 means 100% of the CPU, so if you want the container to take 50% of all CPU cores, you should specify 512. See https://goldmann.pl/blog/2014/09/11/resource-management-in-docker/#_cpu for more:
119119

120120
```
121-
docker run -ti --c 512 agileek/cpuset-test
121+
docker run -ti -c 512 agileek/cpuset-test
122122
```
123123

124124
You can also only use some CPU cores using [`cpuset-cpus`](https://docs.docker.com/engine/reference/run/#/cpuset-constraint). See https://agileek.github.io/docker/2014/08/06/docker-cpuset/ for details and some nice videos:

0 commit comments

Comments
 (0)