From f352ec945fbc34eafdde04dff7ced995c9e3a409 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Mon, 26 Aug 2013 17:55:21 -0400 Subject: [PATCH] ENTRYPOINT fixups --- docs/sources/examples/mongodb.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/sources/examples/mongodb.rst b/docs/sources/examples/mongodb.rst index c8b46c2544..0d0f205cc8 100644 --- a/docs/sources/examples/mongodb.rst +++ b/docs/sources/examples/mongodb.rst @@ -66,13 +66,12 @@ run without needing to provide a special configuration file) RUN mkdir -p /data/db Finally, we'll expose the standard port that MongoDB runs on (27107) as well as -add an entrypoint that runs the standard --help command by default. +define an ENTRYPOINT for the container. .. code-block:: bash EXPOSE 27017 - ENTRYPOINT [ "/usr/bin/mongod" ] - CMD [ "--help" ] + ENTRYPOINT ["usr/bin/mongod"] Now, lets build the image which will go through the ``Dockerfile`` we made and run all of the commands. @@ -87,10 +86,10 @@ the local port! .. code-block:: bash # Regular style - MONGO_ID=$(docker run -d /mongodb mongod) + MONGO_ID=$(docker run -d /mongodb) # Lean and mean - MONGO_ID=$(docker run -d /mongodb mongod --noprealloc --smallfiles) + MONGO_ID=$(docker run -d /mongodb --noprealloc --smallfiles) # Check the logs out docker logs $MONGO_ID