mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #2731 from SvenDowideit/docker-commit-doc
make the docker commit help more copy&pasteable
This commit is contained in:
commit
8498b44eac
2 changed files with 3 additions and 3 deletions
|
@ -1369,7 +1369,7 @@ func (cli *DockerCli) CmdCommit(args ...string) error {
|
||||||
cmd := cli.Subcmd("commit", "[OPTIONS] CONTAINER [REPOSITORY[:TAG]]", "Create a new image from a container's changes")
|
cmd := cli.Subcmd("commit", "[OPTIONS] CONTAINER [REPOSITORY[:TAG]]", "Create a new image from a container's changes")
|
||||||
flComment := cmd.String("m", "", "Commit message")
|
flComment := cmd.String("m", "", "Commit message")
|
||||||
flAuthor := cmd.String("author", "", "Author (eg. \"John Hannibal Smith <hannibal@a-team.com>\"")
|
flAuthor := cmd.String("author", "", "Author (eg. \"John Hannibal Smith <hannibal@a-team.com>\"")
|
||||||
flConfig := cmd.String("run", "", "Config automatically applied when the image is run. "+`(ex: {"Cmd": ["cat", "/world"], "PortSpecs": ["22"]}')`)
|
flConfig := cmd.String("run", "", "Config automatically applied when the image is run. "+`(ex: -run='{"Cmd": ["cat", "/world"], "PortSpecs": ["22"]}')`)
|
||||||
if err := cmd.Parse(args); err != nil {
|
if err := cmd.Parse(args); err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,7 +190,7 @@ by using the ``git://`` schema.
|
||||||
-m="": Commit message
|
-m="": Commit message
|
||||||
-author="": Author (eg. "John Hannibal Smith <hannibal@a-team.com>"
|
-author="": Author (eg. "John Hannibal Smith <hannibal@a-team.com>"
|
||||||
-run="": Configuration to be applied when the image is launched with `docker run`.
|
-run="": Configuration to be applied when the image is launched with `docker run`.
|
||||||
(ex: '{"Cmd": ["cat", "/world"], "PortSpecs": ["22"]}')
|
(ex: -run='{"Cmd": ["cat", "/world"], "PortSpecs": ["22"]}')
|
||||||
|
|
||||||
Simple commit of an existing container
|
Simple commit of an existing container
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -206,7 +206,7 @@ Simple commit of an existing container
|
||||||
$ docker images | head
|
$ docker images | head
|
||||||
REPOSITORY TAG ID CREATED SIZE
|
REPOSITORY TAG ID CREATED SIZE
|
||||||
SvenDowideit/testimage version3 f5283438590d 16 seconds ago 204.2 MB (virtual 335.7 MB)
|
SvenDowideit/testimage version3 f5283438590d 16 seconds ago 204.2 MB (virtual 335.7 MB)
|
||||||
S
|
|
||||||
|
|
||||||
Full -run example
|
Full -run example
|
||||||
.................
|
.................
|
||||||
|
|
Loading…
Reference in a new issue