You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/04/25 14:03:10 UTC
[GitHub] garrensmith opened a new issue #9: Understanding how to run a cluster
garrensmith opened a new issue #9: Understanding how to run a cluster
URL: https://github.com/apache/couchdb-docker/issues/9
From docker-couchdb: klaemo/docker-couchdb#93
Hi @klaemo ,
first of all thanks for the great work. Highly appreciated.
### My target
I am preparing a talk for CouchDB 2.0. Beside all the hot new shit, I want to setup a cluster n=3. So my idea is to use [klaemo/couchdb](https://hub.docker.com/r/klaemo/couchdb/) and start three containers each with one CouchDB. Unfortunately I am not a super docker hero and need some help.
### Status
I am working on Mac and have docker running with DockerApp. I pulled klaemo/couchdb:latest. Then I read in the docu, that I can start couchdb with:
docker run -p 5984:5984 -v $(pwd):/opt/couchdb/data klaemo/couchdb:2.0-single
Hm - why not klaemo/couchdb:latest I thought. But anyway. I ran the command, and, as expected, the image tag 2.0-single was pulled and started (there was an error in the logs but I leave that for later).
Then I thought ok why not use the fresh new latest tag. That did not work because of many permission errors.
docker run -p 5984:5984 -v $(pwd):/opt/couchdb/data klaemo/couchdb:latest
chown: changing ownership of '/opt/couchdb/data/.CFUserTextEncoding': Permission denied
chown: changing ownership of '/opt/couchdb/data/.cocoapods/repos/master/.git/objects/pack/pack-eec33604f65199a2ff43b17547f6b07cf056404d.idx': Permission denied
chown: changing ownership of '/opt/couchdb/data/.cocoapods/repos/master/.git/objects/pack/pack-eec33604f65199a2ff43b17547f6b07cf056404d.pack': Permission denied
chown: changing ownership of '/opt/couchdb/data/.cpan/build/common-sense-3.72-mT74Q2/blib/arch/.exists': Permission denied
docker ps says:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bc798e515489 klaemo/couchdb:latest "tini -- /docker-entr" About a minute ago Up About a minute 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp evil_austin
### Questions
* What am I doing wrong or what do I misunderstand? Or, is it a documentation bug?
* How would I have to setup three nodes? Can I simply run the above command three times?
Thank you very much for your assistance.
All the best
Andy
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services