1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add missing port NAT configuration

Missing port translation causes last line to fail

Docker-DCO-1.1-Signed-off-by: James Fisher <jameshfisher@gmail.com> (github: jameshfisher)
This commit is contained in:
James Harrison Fisher 2014-03-27 23:02:44 +00:00
parent 5506e4b62d
commit 64dd77fa0e

View file

@ -86,10 +86,10 @@ the local port!
.. code-block:: bash
# Regular style
MONGO_ID=$(sudo docker run -d <yourname>/mongodb)
MONGO_ID=$(sudo docker run -P -d <yourname>/mongodb)
# Lean and mean
MONGO_ID=$(sudo docker run -d <yourname>/mongodb --noprealloc --smallfiles)
MONGO_ID=$(sudo docker run -P -d <yourname>/mongodb --noprealloc --smallfiles)
# Check the logs out
sudo docker logs $MONGO_ID