Skip to content

Commit d9770a9

Browse files
struharvthaJeztah
authored andcommitted
adding -c option for docker run/build in manpages
Signed-off-by: Vaclav Struhar <struharv@gmail.com> (cherry picked from commit be219b3) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 6efe73a commit d9770a9

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

man/docker-build.1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ docker-build - Build an image from a Dockerfile
88
[**--add-host**[=*[]*]]
99
[**--build-arg**[=*[]*]]
1010
[**--cache-from**[=*[]*]]
11-
[**--cpu-shares**[=*0*]]
11+
[**-c**|**--cpu-shares**[=*0*]]
1212
[**--cgroup-parent**[=*CGROUP-PARENT*]]
1313
[**--help**]
1414
[**--iidfile**[=*CIDFILE*]]
@@ -153,7 +153,7 @@ In Linux, default is **bridge**.
153153
Unit is optional and can be `b` (bytes), `k` (kilobytes), `m` (megabytes), or `g` (gigabytes). If you omit the unit, the system uses bytes.
154154
If you omit the size entirely, the system uses `64m`.
155155

156-
**--cpu-shares** *0*
156+
**-c**, **--cpu-shares** *0*
157157
CPU shares (relative weight).
158158

159159
By default, all containers get the same proportion of CPU cycles.
@@ -166,7 +166,7 @@ In Linux, default is **bridge**.
166166
You can change this proportion by adjusting the container's CPU share
167167
weighting relative to the weighting of all other running containers.
168168

169-
To modify the proportion from the default of 1024, use the **--cpu-shares**
169+
To modify the proportion from the default of 1024, use the **-c** or **--cpu-shares**
170170
flag to set the weighting to 2 or higher.
171171

172172
Container CPU share Flag

man/docker-run.1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ docker-run - Create and run a new container from an image
1010
[**--annotation**[=*[]*]]
1111
[**--blkio-weight**[=*[BLKIO-WEIGHT]*]]
1212
[**--blkio-weight-device**[=*[]*]]
13-
[**--cpu-shares**[=*0*]]
13+
[**-c**|**--cpu-shares**[=*0*]]
1414
[**--cap-add**[=*[]*]]
1515
[**--cap-drop**[=*[]*]]
1616
[**--cgroupns**[=*[]*]]
@@ -137,14 +137,14 @@ option can be set multiple times.
137137
**--blkio-weight-device**=[]
138138
Block IO weight (relative device weight, format: `DEVICE_NAME:WEIGHT`).
139139

140-
**--cpu-shares**=*0*
140+
**-c**, **--cpu-shares**=*0*
141141
CPU shares (relative weight)
142142

143143
By default, all containers get the same proportion of CPU cycles. This proportion
144144
can be modified by changing the container's CPU share weighting relative
145145
to the weighting of all other running containers.
146146

147-
To modify the proportion from the default of 1024, use the **--cpu-shares**
147+
To modify the proportion from the default of 1024, use the **-c** or **--cpu-shares**
148148
flag to set the weighting to 2 or higher.
149149

150150
The proportion will only apply when CPU-intensive processes are running.

0 commit comments

Comments
 (0)