mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
if -c is not specified, do not set cpu.shares (instead of using the default value of 1024)
This commit is contained in:
parent
efd9becb78
commit
e36752e033
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ func ParseRun(args []string, stdout io.Writer, capabilities *Capabilities) (*Con
|
|||
*flMemory = 0
|
||||
}
|
||||
|
||||
flCpuShares := cmd.Int64("c", 1024, "CPU shares (relative weight)")
|
||||
flCpuShares := cmd.Int64("c", 0, "CPU shares (relative weight)")
|
||||
|
||||
var flPorts ListOpts
|
||||
cmd.Var(&flPorts, "p", "Expose a container's port to the host (use 'docker port' to see the actual mapping)")
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
Run a command in a new container
|
||||
|
||||
-a=map[]: Attach to stdin, stdout or stderr.
|
||||
-c=1024: CPU shares (relative weight)
|
||||
-c=0: CPU shares (relative weight)
|
||||
-d=false: Detached mode: leave the container running in the background
|
||||
-e=[]: Set environment variables
|
||||
-h="": Container host name
|
||||
|
|
Loading…
Reference in a new issue