mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update CmdCommit docstring and fix CmdHelp whitespace
Signed-off-by: Peggy Li <peggyli.224@gmail.com>
This commit is contained in:
parent
b5d0380108
commit
2a5a402c71
2 changed files with 3 additions and 3 deletions
|
@ -14,9 +14,9 @@ import (
|
|||
"github.com/docker/docker/utils"
|
||||
)
|
||||
|
||||
// CmdAttach attaches to a running container.
|
||||
// CmdCommit creates a new image from a container's changes.
|
||||
//
|
||||
// Usage: docker attach [OPTIONS] CONTAINER
|
||||
// Usage: docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
|
||||
func (cli *DockerCli) CmdCommit(args ...string) error {
|
||||
cmd := cli.Subcmd("commit", "CONTAINER [REPOSITORY[:TAG]]", "Create a new image from a container's changes", true)
|
||||
flPause := cmd.Bool([]string{"p", "-pause"}, true, "Pause container during commit")
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
// CmdHelp displays information on a Docker command.
|
||||
//
|
||||
//If more than one command is specified, information is only shown for the first command.
|
||||
// If more than one command is specified, information is only shown for the first command.
|
||||
//
|
||||
// Usage: docker help COMMAND or docker COMMAND --help
|
||||
func (cli *DockerCli) CmdHelp(args ...string) error {
|
||||
|
|
Loading…
Reference in a new issue