Browse code

removing grep command that depends on perl, better for boot2docker

Docker-DCO-1.1-Signed-off-by: Adam Singer <financeCoding@gmail.com> (github: financeCoding)

Adam Singer authored on 2014/05/18 15:16:23
Showing 1 changed files
... ...
@@ -28,7 +28,7 @@ We're assuming your Docker host is reachable at `localhost`. If not,
28 28
 replace `localhost` with the public IP of your Docker host.
29 29
 
30 30
     $ HOST=localhost
31
-    $ URL="http://$HOST:$(sudo docker port $COUCH1 5984 | grep -Po '\d+$')/_utils/"
31
+    $ URL="http://$HOST:$(sudo docker port $COUCH1 5984 | grep -o '[1-9][0-9]*$')/_utils/"
32 32
     $ echo "Navigate to $URL in your browser, and use the couch interface to add data"
33 33
 
34 34
 ## Create second database
... ...
@@ -40,7 +40,7 @@ This time, we're requesting shared access to `$COUCH1`'s volumes.
40 40
 ## Browse data on the second database
41 41
 
42 42
     $ HOST=localhost
43
-    $ URL="http://$HOST:$(sudo docker port $COUCH2 5984 | grep -Po '\d+$')/_utils/"
43
+    $ URL="http://$HOST:$(sudo docker port $COUCH2 5984 | grep -o '[1-9][0-9]*$')/_utils/"
44 44
     $ echo "Navigate to $URL in your browser. You should see the same data as in the first database"'!'
45 45
 
46 46
 Congratulations, you are now running two Couchdb containers, completely