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

removing grep command that depends on perl, better for boot2docker

Docker-DCO-1.1-Signed-off-by: Adam Singer <financeCoding@gmail.com> (github: financeCoding)
This commit is contained in:
Adam Singer 2014-05-17 23:16:23 -07:00
parent f65db7c565
commit 7f9178c6d1

View file

@ -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. replace `localhost` with the public IP of your Docker host.
$ HOST=localhost $ 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" $ echo "Navigate to $URL in your browser, and use the couch interface to add data"
## Create second database ## Create second database
@ -40,7 +40,7 @@ This time, we're requesting shared access to `$COUCH1`'s volumes.
## Browse data on the second database ## Browse data on the second database
$ HOST=localhost $ 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"'!' $ 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 Congratulations, you are now running two Couchdb containers, completely