Signed-off-by: Peggy Li <peggyli.224@gmail.com>
| ... | ... |
@@ -14,9 +14,9 @@ import ( |
| 14 | 14 |
"github.com/docker/docker/utils" |
| 15 | 15 |
) |
| 16 | 16 |
|
| 17 |
-// CmdAttach attaches to a running container. |
|
| 17 |
+// CmdCommit creates a new image from a container's changes. |
|
| 18 | 18 |
// |
| 19 |
-// Usage: docker attach [OPTIONS] CONTAINER |
|
| 19 |
+// Usage: docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]] |
|
| 20 | 20 |
func (cli *DockerCli) CmdCommit(args ...string) error {
|
| 21 | 21 |
cmd := cli.Subcmd("commit", "CONTAINER [REPOSITORY[:TAG]]", "Create a new image from a container's changes", true)
|
| 22 | 22 |
flPause := cmd.Bool([]string{"p", "-pause"}, true, "Pause container during commit")
|
| ... | ... |
@@ -9,7 +9,7 @@ import ( |
| 9 | 9 |
|
| 10 | 10 |
// CmdHelp displays information on a Docker command. |
| 11 | 11 |
// |
| 12 |
-//If more than one command is specified, information is only shown for the first command. |
|
| 12 |
+// If more than one command is specified, information is only shown for the first command. |
|
| 13 | 13 |
// |
| 14 | 14 |
// Usage: docker help COMMAND or docker COMMAND --help |
| 15 | 15 |
func (cli *DockerCli) CmdHelp(args ...string) error {
|