Przeglądaj źródła

Merge pull request #20075 from eallrich/20074-fix-docker-inspect-command

Adding --format= flag
Sebastiaan van Stijn 9 lat temu
rodzic
commit
534bad6010
1 zmienionych plików z 1 dodań i 1 usunięć
  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:
 
-    $ docker inspect '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' d2cc496561d6
+    $ docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' d2cc496561d6
     172.17.0.2
 
 ## Listing all port bindings