From 6097644e4b79fec180173d7278da884ac0484b8a Mon Sep 17 00:00:00 2001 From: Andy Rothfusz <github@metaliveblog.com> Date: Mon, 23 Sep 2013 11:29:08 -0700 Subject: [PATCH] Fix #1969 formatting, add information about multiline json --- docs/sources/commandline/command/commit.rst | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/sources/commandline/command/commit.rst b/docs/sources/commandline/command/commit.rst index e1d5092fff..ef0d863688 100644 --- a/docs/sources/commandline/command/commit.rst +++ b/docs/sources/commandline/command/commit.rst @@ -14,12 +14,15 @@ -m="": Commit message -author="": Author (eg. "John Hannibal Smith <hannibal@a-team.com>" - -run="": Config automatically applied when the image is - run. "+`(ex: {"Cmd": ["cat", "/world"], "PortSpecs": ["22"]}') + -run="": Configuration to be applied when the image is launched with `docker run`. + (ex: '{"Cmd": ["cat", "/world"], "PortSpecs": ["22"]}') -Full -run example:: +Full -run example (multiline is ok within a single quote ``'``) -{ +:: + + $ sudo docker commit -run=' + { "Entrypoint" : null, "Privileged" : false, "User" : "", @@ -46,4 +49,4 @@ Full -run example:: "NetworkDisabled" : false, "Memory" : 0, "AttachStdout" : false -} + }' $CONTAINER_ID