From 492ce4c665b7d55d1496fb7e822a49ff0d44809d Mon Sep 17 00:00:00 2001 From: eugenkrizo Date: Fri, 15 Nov 2013 17:12:48 +0100 Subject: [PATCH] port published explicitly (for docker 0.6.6) port 5984 to couchdb needs to be published explicitly in docker version 0.6.6 --- docs/sources/examples/couchdb_data_volumes.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/sources/examples/couchdb_data_volumes.rst b/docs/sources/examples/couchdb_data_volumes.rst index 60674fe9a0..1f6b4b7910 100644 --- a/docs/sources/examples/couchdb_data_volumes.rst +++ b/docs/sources/examples/couchdb_data_volumes.rst @@ -20,7 +20,7 @@ Note that we're marking ``/var/lib/couchdb`` as a data volume. .. code-block:: bash - COUCH1=$(sudo docker run -d -v /var/lib/couchdb shykes/couchdb:2013-05-03) + COUCH1=$(sudo docker run -d -p 5984 -v /var/lib/couchdb shykes/couchdb:2013-05-03) Add data to the first database ------------------------------ @@ -31,7 +31,7 @@ replace ``localhost`` with the public IP of your Docker host. .. code-block:: bash HOST=localhost - URL="http://$HOST:$(sudo docker port $COUCH1 5984)/_utils/" + URL="http://$HOST:$(sudo docker port $COUCH1 5984 | grep -Po '\d+$')/_utils/" echo "Navigate to $URL in your browser, and use the couch interface to add data" Create second database @@ -41,7 +41,7 @@ This time, we're requesting shared access to ``$COUCH1``'s volumes. .. code-block:: bash - COUCH2=$(sudo docker run -d -volumes-from $COUCH1 shykes/couchdb:2013-05-03) + COUCH2=$(sudo docker run -d -p 5984 -volumes-from $COUCH1 shykes/couchdb:2013-05-03) Browse data on the second database ---------------------------------- @@ -49,7 +49,7 @@ Browse data on the second database .. code-block:: bash HOST=localhost - URL="http://$HOST:$(sudo docker port $COUCH2 5984)/_utils/" + URL="http://$HOST:$(sudo docker port $COUCH2 5984 | grep -Po '\d+$')/_utils/" echo "Navigate to $URL in your browser. You should see the same data as in the first database"'!' Congratulations, you are now running two Couchdb containers, completely