From 1bc1caf27cc96e9a9a5c9bb195f0195a3646a927 Mon Sep 17 00:00:00 2001 From: James Harrison Fisher Date: Thu, 27 Mar 2014 23:02:44 +0000 Subject: [PATCH] Add missing port NAT configuration Missing port translation causes last line to fail Docker-DCO-1.1-Signed-off-by: James Fisher (github: jameshfisher) Upstream-commit: 64dd77fa0eb73ec4f395848982ccb60bb3bf8fc5 Component: engine --- components/engine/docs/sources/examples/mongodb.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/docs/sources/examples/mongodb.rst b/components/engine/docs/sources/examples/mongodb.rst index 930ab2ea9d..913dc2699a 100644 --- a/components/engine/docs/sources/examples/mongodb.rst +++ b/components/engine/docs/sources/examples/mongodb.rst @@ -86,10 +86,10 @@ the local port! .. code-block:: bash # Regular style - MONGO_ID=$(sudo docker run -d /mongodb) + MONGO_ID=$(sudo docker run -P -d /mongodb) # Lean and mean - MONGO_ID=$(sudo docker run -d /mongodb --noprealloc --smallfiles) + MONGO_ID=$(sudo docker run -P -d /mongodb --noprealloc --smallfiles) # Check the logs out sudo docker logs $MONGO_ID