From 7f9178c6d15417ed8b32976b7ca075422c8160da Mon Sep 17 00:00:00 2001 From: Adam Singer Date: Sat, 17 May 2014 23:16:23 -0700 Subject: [PATCH] removing grep command that depends on perl, better for boot2docker Docker-DCO-1.1-Signed-off-by: Adam Singer (github: financeCoding) --- docs/sources/examples/couchdb_data_volumes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sources/examples/couchdb_data_volumes.md b/docs/sources/examples/couchdb_data_volumes.md index 17490487aa..ec1a0d9476 100644 --- a/docs/sources/examples/couchdb_data_volumes.md +++ b/docs/sources/examples/couchdb_data_volumes.md @@ -28,7 +28,7 @@ We're assuming your Docker host is reachable at `localhost`. If not, replace `localhost` with the public IP of your Docker host. $ HOST=localhost - $ URL="http://$HOST:$(sudo docker port $COUCH1 5984 | grep -Po '\d+$')/_utils/" + $ URL="http://$HOST:$(sudo docker port $COUCH1 5984 | grep -o '[1-9][0-9]*$')/_utils/" $ echo "Navigate to $URL in your browser, and use the couch interface to add data" ## Create second database @@ -40,7 +40,7 @@ This time, we're requesting shared access to `$COUCH1`'s volumes. ## Browse data on the second database $ HOST=localhost - $ URL="http://$HOST:$(sudo docker port $COUCH2 5984 | grep -Po '\d+$')/_utils/" + $ URL="http://$HOST:$(sudo docker port $COUCH2 5984 | grep -o '[1-9][0-9]*$')/_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