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.
This commit is contained in:
parent
3885ef585b
commit
f5e6c2d060
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue