diff --git a/components/engine/container.go b/components/engine/container.go index 1cf62c07e3..9315d3347a 100644 --- a/components/engine/container.go +++ b/components/engine/container.go @@ -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)") diff --git a/components/engine/docs/sources/commandline/command/run.rst b/components/engine/docs/sources/commandline/command/run.rst index ec46039851..95fb208dd3 100644 --- a/components/engine/docs/sources/commandline/command/run.rst +++ b/components/engine/docs/sources/commandline/command/run.rst @@ -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