tutum/couchdb

By tutum

Updated almost 10 years ago

Base docker image to run a CouchDB database server

Image
3

10K+

tutum/couchdb repository overview

tutum-docker-couchdb

Deploy to Tutum

Base docker image to run a CouchDB database server

Usage

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

docker build -t tutum/couchdb .

To run the image and bind to port 5984:

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

The first time that you run your container, a new user admin with all privileges will be created in CouchDB with a random password. To get the password, check the logs of the container by running:

docker logs <CONTAINER_ID>

You will see an output like the following:

========================================================================
You can now connect to this CouchDB server using:

    curl http://admin:BCRmhDz4hT7g@<host>:<port>

Please remember to change the above password as soon as possible!
========================================================================

In this case, BCRmhDz4hT7g is the password allocated to the admin user.

You can now test your deployment:

curl http://admin:[email protected]:5984/

Setting a specific password for the admin account

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

docker run -d -p 5984:5984 -e COUCHDB_PASS="mypass" tutum/couchdb

You can now test your deployment:

curl http://admin:[email protected]:5984/

Done!

by http://www.tutum.co

Tag summary

Content type

Image

Digest

sha256:b1636d70b

Size

109.6 MB

Last updated

almost 10 years ago

Requires Docker Desktop 4.37.1 or later.