Explorar o código

Merge pull request #495 from dotcloud/autorun_docs

* docs: Update commandline Commit doc
Guillaume J. Charmes %!s(int64=12) %!d(string=hai) anos
pai
achega
d0c2e31fb9
Modificáronse 1 ficheiros con 16 adicións e 0 borrados
  1. 16 0
      docs/sources/commandline/command/commit.rst

+ 16 - 0
docs/sources/commandline/command/commit.rst

@@ -9,3 +9,19 @@
     Create a new image from a container's changes
 
       -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"]}')
+
+Full -run example::
+
+    {"Hostname": "",
+     "User": "",
+     "Memory": 0,
+     "MemorySwap": 0,
+     "PortSpecs": ["22", "80", "443"],
+     "Tty": true,
+     "OpenStdin": true,
+     "StdinOnce": true,
+     "Env": ["FOO=BAR", "FOO2=BAR2"],
+     "Cmd": ["cat", "-e", "/etc/resolv.conf"],
+     "Dns": ["8.8.8.8", "8.8.4.4"]}