Browse code

if -c is not specified, do not set cpu.shares (instead of using the default value of 1024)

Jérôme Petazzoni authored on 2013/05/08 03:43:45
Showing 2 changed files
... ...
@@ -92,7 +92,7 @@ func ParseRun(args []string, stdout io.Writer, capabilities *Capabilities) (*Con
92 92
 		*flMemory = 0
93 93
 	}
94 94
 
95
-	flCpuShares := cmd.Int64("c", 1024, "CPU shares (relative weight)")
95
+	flCpuShares := cmd.Int64("c", 0, "CPU shares (relative weight)")
96 96
 
97 97
 	var flPorts ListOpts
98 98
 	cmd.Var(&flPorts, "p", "Expose a container's port to the host (use 'docker port' to see the actual mapping)")
... ...
@@ -9,7 +9,7 @@
9 9
     Run a command in a new container
10 10
 
11 11
       -a=map[]: Attach to stdin, stdout or stderr.
12
-      -c=1024: CPU shares (relative weight)
12
+      -c=0: CPU shares (relative weight)
13 13
       -d=false: Detached mode: leave the container running in the background
14 14
       -e=[]: Set environment variables
15 15
       -h="": Container host name