Public Repository

Last pushed: 2 years ago
Short Description
couch db instance
Full Description

The couchdb image is built upon the phusion/baseimage (ubuntu 14.04.1 LTS)

To pull the image:
docker pull tqhh/couchdb:v1.6.1

Run as daemon:
docker run --rm -p=8848:9999 tqhh/couchdb:v1.6.1 /sbin/my_init

Run interactive mode:
docker run -t -i -p=8848:9999 tqhh/couchdb:v1.6.1 /sbin/my_init -- bash -l

Persist data:
mkdir ~/couchdb

make sure ~/couchdb is read/write-able by couchdb user in the container (uid:1000)
mount ~/couchdb when start the container

docker run -t -i -p=8848:9999 -v ~/couchdb:/usr/local/var/lib/couchdb tqhh/couchdb:v1.6.1 /sbin/my_init

8848 is the internal port;
9999 is the public port

Detach mode, run the service in background without any log print to foreground

docker run -d -p=8848:9999 -v ~/couchdb:/usr/local/var/lib/couchdb tqhh/couchdb:v1.6.1 /sbin/my_init

curl http://localhost:9999
{"couchdb":"Welcome","uuid":"f760154e1401cdc06fd0713bc20165f6","version":"1.6.1","vendor":{"version":"1.6.1","name":"The Apache Software Foundation"}}

Docker Pull Command

Comments (0)