Sign inSign up

lastbackend/couchdb

By lastbackend

•Updated almost 11 years ago

Image
0

2.1K

lastbackend/couchdb repository overview

⁠lb-docker-couchdb

Base docker image to run a CouchDB server

⁠Usage

To create the image lastbackend/couchdb, execute the following command on the lb-docker-couchdb folder:

docker build -t lastbackend/couchdb .

⁠Running the CouchDB server

Run the following command to start couchdb:

docker run -d -p 5984:5984 lastbackend/couchdb

The first time that you run your container, a new random password will be set. To get the password, check the logs of the container by running:

docker logs <CONTAINER_ID>

You will see an output like the following:

	------------------------------ CouchDB -----------------------------
	  +-++-+ curl http://admin:Bpma6QBiUDMt9jd503lwezpe@<host>:<port>
	  | LB |
	  +-++-+ Please remember to change the above password!
	--------------------------------------------------------------------

⁠Setting a specific password

If you want to use a preset password instead of a random generated one, you can set the environment variable PASS to your specific password when running the container:

docker run -d -p 5984:5984 -e USER="demo" -e PASS="mypass" lastbackend/couchdb

	------------------------------ CouchDB -----------------------------
	  +-++-+
	  | LB | curl http://demo:«password»@<host>:<port>
	  +-++-+
	--------------------------------------------------------------------

In this case, mypass is the password assigned to the demo user.

If you want to disable password authentication, you can set PASS to **None**

by http://www.lastbackend.com⁠

Tag summary

Content type

Image

Digest

sha256:a76866f7e…

Size

100.4 MB

Last updated

almost 11 years ago

docker pull lastbackend/couchdb