From 5c639118d35c1c2048123e94fd4b9ff9b98c89dc Mon Sep 17 00:00:00 2001 From: Ken Cochrane Date: Thu, 28 Mar 2013 15:51:10 -0300 Subject: [PATCH] fixed some of the syntax in example The example was broken, I updated it to work with latest version of code. --- docs/sources/examples/python_web_app.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sources/examples/python_web_app.rst b/docs/sources/examples/python_web_app.rst index 922af29345..9e41073310 100644 --- a/docs/sources/examples/python_web_app.rst +++ b/docs/sources/examples/python_web_app.rst @@ -24,9 +24,9 @@ We set a URL variable that points to a tarball of a simple helloflask web app .. code-block:: bash - $ BUILD_JOB=$(docker run -t shykes/pybuilder:1d9aab3737242c65 /usr/local/bin/buildapp $URL) + $ BUILD_JOB=$(docker run -d -t shykes/pybuilder:latest /usr/local/bin/buildapp $URL) -Inside of the "shykes/pybuilder" image there is a command called buildapp, we are running that command and passing the $URL variable from step 2 to it, and running the whole thing inside of a new container. BUILD_JOB will be set with the new container_id. "1d9aab3737242c65" came from the output of step 1 when importing image. also available from 'docker images'. +Inside of the "shykes/pybuilder" image there is a command called buildapp, we are running that command and passing the $URL variable from step 2 to it, and running the whole thing inside of a new container. BUILD_JOB will be set with the new container_id. .. code-block:: bash @@ -43,7 +43,7 @@ Save the changed we just made in the container to a new image called "_/builds/g .. code-block:: bash - $ WEB_WORKER=$(docker run -p 5000 $BUILD_IMG /usr/local/bin/runapp) + $ WEB_WORKER=$(docker run -d -p 5000 $BUILD_IMG /usr/local/bin/runapp) Use the new image we just created and create a new container with network port 5000, and return the container id and store in the WEB_WORKER variable.