瀏覽代碼

Adding --format= flag

Signed-off-by: Evan Allrich <evan@unguku.com>
Evan Allrich 9 年之前
父節點
當前提交
78ba5d58e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      man/docker-inspect.1.md

+ 1 - 1
man/docker-inspect.1.md

@@ -209,7 +209,7 @@ To get information on a container use its ID or instance name:
 
 
 To get the IP address of a container use:
 To get the IP address of a container use:
 
 
-    $ docker inspect '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' d2cc496561d6
+    $ docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' d2cc496561d6
     172.17.0.2
     172.17.0.2
 
 
 ## Listing all port bindings
 ## Listing all port bindings