瀏覽代碼

Merge pull request #19574 from polonskiy/patch-2

fixed typo
Vincent Demeester 9 年之前
父節點
當前提交
c3a9ecedba
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/reference/commandline/inspect.md

+ 1 - 1
docs/reference/commandline/inspect.md

@@ -41,7 +41,7 @@ straightforward manner.
 For the most part, you can pick out any field from the JSON in a fairly
 straightforward manner.
 
-    $ docker inspect '{{range .NetworkSettings.Networks}}{{.MacAddress}}{{end}}' $INSTANCE_ID
+    $ docker inspect --format='{{range .NetworkSettings.Networks}}{{.MacAddress}}{{end}}' $INSTANCE_ID
 
 **Get an instance's log path:**