Browse code

Updated the description of run -d

The goal is to make it more clear this will give you the container id after run completes.

Since stdout is now standard on run, "docker run -d" is the best (or only) way to get the container ID returned from docker after a plain run, but the description (help) does not hint any such thing.

Thatcher Peskens authored on 2013/07/30 06:17:15
Showing 2 changed files
... ...
@@ -100,7 +100,7 @@ func ParseRun(args []string, capabilities *Capabilities) (*Config, *HostConfig,
100 100
 
101 101
 	flHostname := cmd.String("h", "", "Container host name")
102 102
 	flUser := cmd.String("u", "", "Username or UID")
103
-	flDetach := cmd.Bool("d", false, "Detached mode: leave the container running in the background")
103
+	flDetach := cmd.Bool("d", false, "Detached mode: Run container in the background, print new container id")
104 104
 	flAttach := NewAttachOpts()
105 105
 	cmd.Var(flAttach, "a", "Attach to stdin, stdout or stderr.")
106 106
 	flStdin := cmd.Bool("i", false, "Keep stdin open even if not attached")
... ...
@@ -15,7 +15,7 @@
15 15
       -a=map[]: Attach to stdin, stdout or stderr.
16 16
       -c=0: CPU shares (relative weight)
17 17
       -cidfile="": Write the container ID to the file
18
-      -d=false: Detached mode: leave the container running in the background
18
+      -d=false: Detached mode: Run container in the background, print new container id
19 19
       -e=[]: Set environment variables
20 20
       -h="": Container host name
21 21
       -i=false: Keep stdin open even if not attached