mirror of https://github.com/docker/docs.git
Fix #1969 formatting, add information about multiline json
This commit is contained in:
parent
648d759517
commit
74d54b9b2e
|
@ -14,11 +14,14 @@
|
||||||
|
|
||||||
-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="": Config automatically applied when the image is
|
-run="": Configuration to be applied when the image is launched with `docker run`.
|
||||||
run. "+`(ex: {"Cmd": ["cat", "/world"], "PortSpecs": ["22"]}')
|
(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,
|
"Entrypoint" : null,
|
||||||
"Privileged" : false,
|
"Privileged" : false,
|
||||||
|
@ -46,4 +49,4 @@ Full -run example::
|
||||||
"NetworkDisabled" : false,
|
"NetworkDisabled" : false,
|
||||||
"Memory" : 0,
|
"Memory" : 0,
|
||||||
"AttachStdout" : false
|
"AttachStdout" : false
|
||||||
}
|
}' $CONTAINER_ID
|
||||||
|
|
Loading…
Reference in New Issue