Sfoglia il codice sorgente

Merge pull request #2679 from FreekKalter/master

fix error in python webapp example
Andy Rothfusz 11 anni fa
parent
commit
3cf23b93ea
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      docs/sources/examples/python_web_app.rst

+ 1 - 1
docs/sources/examples/python_web_app.rst

@@ -86,7 +86,7 @@ http://0.0.0.0:5000/`` in the log output.
 
 .. code-block:: bash
 
-    WEB_PORT=$(sudo docker port $WEB_WORKER 5000)
+    WEB_PORT=$(sudo docker port $WEB_WORKER 5000 | awk -F: '{ print $2 }')
 
 Look up the public-facing port which is NAT-ed. Find the private port
 used by the container and store it inside of the ``WEB_PORT`` variable.