Browse Source

Merge pull request #5659 from ryanaslett/master

Trivial Documentation Change: The Go template is a better pattern for documentation.
O.S. Tezer 11 years ago
parent
commit
e4f4ce83d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/sources/use/port_redirection.md

+ 1 - 1
docs/sources/use/port_redirection.md

@@ -11,7 +11,7 @@ port. When this service runs inside a container, one can connect to the
 port after finding the IP address of the container as follows:
 port after finding the IP address of the container as follows:
 
 
     # Find IP address of container with ID <container_id>
     # Find IP address of container with ID <container_id>
-    $ docker inspect <container_id> | grep IPAddress | cut -d '"' -f 4
+    $ docker inspect --format='{{.NetworkSettings.IPAddress}}' <container_id>
 
 
 However, this IP address is local to the host system and the container
 However, this IP address is local to the host system and the container
 port is not reachable by the outside world. Furthermore, even if the
 port is not reachable by the outside world. Furthermore, even if the