Browse code

fix error in python webapp example

When getting the private port used by a container using
`docker port` returns 0.0.0.0:49353, stript just the portnumber of the address with awk to used it in the rest of the example code.

Freek Kalter authored on 2013/11/13 21:20:38
Showing 1 changed files
... ...
@@ -86,7 +86,7 @@ http://0.0.0.0:5000/`` in the log output.
86 86
 
87 87
 .. code-block:: bash
88 88
 
89
-    WEB_PORT=$(sudo docker port $WEB_WORKER 5000)
89
+    WEB_PORT=$(sudo docker port $WEB_WORKER 5000 | awk -F: '{ print $2 }')
90 90
 
91 91
 Look up the public-facing port which is NAT-ed. Find the private port
92 92
 used by the container and store it inside of the ``WEB_PORT`` variable.