From 172689d6bbc1af57ab60700ac301126598d8a516 Mon Sep 17 00:00:00 2001 From: Freek Kalter Date: Wed, 13 Nov 2013 13:20:38 +0100 Subject: [PATCH] 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. Upstream-commit: f5e6c2d060d5eb052929c4ab14bf3256b260afc4 Component: engine --- components/engine/docs/sources/examples/python_web_app.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/docs/sources/examples/python_web_app.rst b/components/engine/docs/sources/examples/python_web_app.rst index c707fcdec6..e3f5f5eb83 100644 --- a/components/engine/docs/sources/examples/python_web_app.rst +++ b/components/engine/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.