From bc74f65068b6b80b657e07f4ab2d7b115aacae75 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Sat, 16 Nov 2013 21:11:34 +1000 Subject: [PATCH] make the docker commit help more copy&pasteable --- commands.go | 2 +- docs/sources/commandline/cli.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands.go b/commands.go index 710a311c08..18be5fc051 100644 --- a/commands.go +++ b/commands.go @@ -1360,7 +1360,7 @@ func (cli *DockerCli) CmdCommit(args ...string) error { cmd := Subcmd("commit", "[OPTIONS] CONTAINER [REPOSITORY[:TAG]]", "Create a new image from a container's changes") flComment := cmd.String("m", "", "Commit message") flAuthor := cmd.String("author", "", "Author (eg. \"John Hannibal Smith \"") - 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 { return nil } diff --git a/docs/sources/commandline/cli.rst b/docs/sources/commandline/cli.rst index 37f371baad..7db2a309b7 100644 --- a/docs/sources/commandline/cli.rst +++ b/docs/sources/commandline/cli.rst @@ -157,7 +157,7 @@ by using the ``git://`` schema. -m="": Commit message -author="": Author (eg. "John Hannibal Smith " -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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -173,7 +173,7 @@ Simple commit of an existing container $ docker images | head REPOSITORY TAG ID CREATED SIZE SvenDowideit/testimage version3 f5283438590d 16 seconds ago 204.2 MB (virtual 335.7 MB) - S + Full -run example .................