mirror of
https://github.com/docker/cli.git
synced 2026-01-18 08:21:31 +03:00
if -c is not specified, do not set cpu.shares (instead of using the default value of 1024)
Upstream-commit: e36752e03347bf46177d8ee810cdd5a019321dc9 Component: engine
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user