专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题轩辕镜像免费版
其他
关于我们网站地图
热门搜索:
couchdb

library/couchdb

Docker 官方镜像

CouchDB是采用JSON文档格式、提供HTTP API并支持JavaScript/声明式索引的数据库。

595 次收藏下载次数: 0状态:Docker 官方镜像维护者:Docker 官方镜像仓库类型:镜像最近更新:22 天前
轩辕镜像,快一点,稳很多。点击查看
DockerHub 官方简介
轩辕镜像中文简介
标签下载
镜像标签列表与下载命令
轩辕镜像,快一点,稳很多。点击查看

Quick reference

  • Maintained by:
    https://github.com/apache/couchdb-docker

  • Where to get help:
    the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow

Supported tags and respective Dockerfile links

  • https://github.com/apache/couchdb-docker/blob/4c82ee090d6299c27616f30d93c9622f769431dd/3.5.1/Dockerfile

  • https://github.com/apache/couchdb-docker/blob/4c82ee090d6299c27616f30d93c9622f769431dd/3.5.1-nouveau/Dockerfile

  • https://github.com/apache/couchdb-docker/blob/4c82ee090d6299c27616f30d93c9622f769431dd/3.4.3/Dockerfile

  • https://github.com/apache/couchdb-docker/blob/4c82ee090d6299c27616f30d93c9622f769431dd/3.4.3-nouveau/Dockerfile

Quick reference (cont.)

  • Where to file issues:
    https://github.com/apache/couchdb-docker/issues?q=

  • Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
    https://hub.docker.com/r/amd64/couchdb/, https://hub.docker.com/r/arm64v8/couchdb/, https://hub.docker.com/r/s390x/couchdb/

  • Published image artifact details:
    https://github.com/docker-library/repo-info/blob/master/repos/couchdb (https://github.com/docker-library/repo-info/commits/master/repos/couchdb)
    (image metadata, transfer size, etc)

  • Image updates:
    https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fcouchdb
    https://github.com/docker-library/official-images/blob/master/library/couchdb (https://github.com/docker-library/official-images/commits/master/library/couchdb)

  • Source of this description:
    https://github.com/docker-library/docs/tree/master/couchdb (https://github.com/docker-library/docs/commits/master/couchdb)

What is Apache CouchDB?

Apache CouchDB™ lets you access your data where you need it by defining the Couch Replication Protocol that is implemented by a variety of projects and products that span every imaginable computing environment from globally distributed server-clusters, over mobile phones to web browsers. Software that is compatible with the Couch Replication Protocol include PouchDB and Cloudant.

Store your data safely, on your own servers, or with any leading cloud provider. Your web- and native applications love CouchDB, because it speaks JSON natively and supports binary for all your data storage needs. The Couch Replication Protocol lets your data flow seamlessly between server clusters to mobile phones and web browsers, enabling a compelling, offline-first user-experience while maintaining high performance and strong reliability. CouchDB comes with a developer-friendly query language, and optionally MapReduce for simple, efficient, and comprehensive data retrieval.

couchdb.apache.org

!https://raw.githubusercontent.com/docker-library/docs/d14b6718efb17e85f7a72ceb5de0718786367884/couchdb/logo.png

How to use this image

Start a CouchDB instance

Starting a CouchDB instance is simple:

console
$ docker run -d --name my-couchdb couchdb:tag

where my-couchdb is the name you want to assign to your container, and tag is the tag specifying the CouchDB version you want. See the list above for relevant tags.

Connect to CouchDB from an application in another Docker container

This image exposes the standard CouchDB port 5984, so standard container linking will make it automatically available to the linked containers. Start your application container like this in order to link it to the Cassandra container:

console
$ docker run --name my-couchdb-app --link my-couchdb:couchdb -d app-that-uses-couchdb

Exposing CouchDB to the outside world

If you want to expose the port to the outside world, run

console
$ docker run -p 5984:5984 -d couchdb

WARNING: Do not do this until you have established an admin user and setup permissions correctly on any databases you have created.

If you intend to network this CouchDB instance with others in a cluster, you will need to map additional ports; see the official CouchDB documentation for details.

Make a cluster

Start your multiple CouchDB instances, then follow the Setup Wizard in the official CouchDB documentation to complete the process.

For a CouchDB cluster you need to provide the NODENAME setting as well as the erlang cookie. Settings to Erlang can be made with the environment variable ERL_FLAGS, e.g. ERL_FLAGS=-setcookie "brumbrum". Further information can be found here.

There is also a https://github.com/helm/charts/tree/master/incubator/couchdb available.

Container shell access, remsh, and viewing logs

The docker exec command allows you to run commands inside a Docker container. The following command line will give you a bash shell inside your couchdb container:

console
$ docker exec -it my-couchdb bash

If you need direct access to the Erlang runtime:

console
$ docker exec -it my-couchdb /opt/couchdb/bin/remsh

The CouchDB log is available through Docker's container log:

console
$ docker logs my-couchdb

Configuring CouchDB

The best way to provide configuration to the couchdb image is to provide a custom ini file to CouchDB, preferably stored in the /opt/couchdb/etc/local.d/ directory. There are many ways to provide this file to the container (via short Dockerfile with FROM + COPY, via Docker Configs, via runtime bind-mount, etc), the details of which are left as an exercise for the reader.

Keep in mind that run-time reconfiguration of CouchDB will overwrite the last file in the configuration chain, and that this Docker container creates the /opt/couchdb/etc/local.d/docker.ini file at startup.

CouchDB also uses /opt/couchdb/etc/vm.args to store Erlang runtime-specific changes. Changing these values is less common. If you need to change the epmd port, for instance, you will want to bind mount this file as well. (Note: files cannot be bind-mounted on Windows hosts.)

In addition, a few environment variables are provided to set very common parameters:

  • COUCHDB_USER and COUCHDB_PASSWORD will create an ini-file based local admin user with the given username and password in the file /opt/couchdb/etc/local.d/docker.ini.
  • COUCHDB_SECRET will set the CouchDB shared cluster secret value, in the file /opt/couchdb/etc/local.d/docker.ini.
  • NODENAME will set the name of the CouchDB node inside the container to couchdb@${NODENAME}, in the file /opt/couchdb/etc/vm.args. This is used for clustering purposes and can be ignored for single-node setups.
  • Erlang Environment Variables like ERL_FLAGS will be used by Erlang itself. For a complete list have a look here

Caveats

Where to Store Data

Important note: There are several ways to store data used by applications that run in Docker containers. We encourage users of the couchdb images to familiarize themselves with the options available, including:

  • Let Docker manage the storage of your database data by writing the database files to disk on the host system using its own internal volume management. This is the default and is easy and fairly transparent to the user. The downside is that the files may be hard to locate for tools and applications that run directly on the host system, i.e. outside containers.
  • Create a data directory on the host system (outside the container) and mount this to a directory visible from inside the container. This places the database files in a known location on the host system, and makes it easy for tools and applications on the host system to access the files. The downside is that the user needs to make sure that the directory exists, and that e.g. directory permissions and other security mechanisms on the host system are set up correctly.

The Docker documentation is a good starting point for understanding the different storage options and variations, and there are multiple blogs and forum postings that discuss and give advice in this area. We will simply show the basic procedure here for the latter option above:

  1. Create a data directory on a suitable volume on your host system, e.g. /home/couchdb/data.
  2. Start your couchdb container like this:
bash
$ docker run --name some-%%REPO% -v /home/couchdb/data:/opt/couchdb/data -d couchdb:tag

The -v /home/couchdb/data:/opt/couchdb/data part of the command mounts the /home/couchdb/data directory from the underlying host system as /opt/couchdb/data inside the container, where CouchDB by default will write its data files.

No system databases until the installation is finalized

Please note that CouchDB no longer autocreates system databases for you, as it is not known at startup time if this is a single-node or clustered CouchDB installation. In a cluster, the databases must only be created once all nodes have been joined together.

If you use the Cluster Setup Wizard or the Cluster Setup API, these databases will be created for you when you complete the process.

If you choose not to use the Cluster Setup wizard or API, you will have to create _global_changes, _replicator and _users manually.

Admin party mode

The node will also start in admin party mode. Be sure to create an admin user! The Cluster Setup Wizard or the Cluster Setup API will do this for you.

You can also use the two environment variables COUCHDB_USER and COUCHDB_PASSWORD to set up an admin user:

console
$ docker run -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -d couchdb

Note that if you are setting up a clustered CouchDB, you will want to pre-hash this password and use the identical hashed text across all nodes to ensure sessions work correctly when a load *** is placed in front of the cluster. Hashing can be accomplished by running the container with the /opt/couchdb/etc/local.d directory mounted as a volume, allowing CouchDB to hash the password you set, then copying out the hashed version and using this value in the future.

Using a persistent CouchDB configuration file

The CouchDB configuration is specified in .ini files in /opt/couchdb/etc. Take a look at the CouchDB configuration documentation to learn more about CouchDB's configuration structure.

If you want to use a customized CouchDB configuration, you can create your configuration file in a directory on the host machine and then mount that directory as /opt/couchdb/etc/local.d inside the couchdb container.

console
$ docker run --name my-couchdb -v /home/couchdb/etc:/opt/couchdb/etc/local.d -d couchdb

The -v /home/couchdb/etc:/opt/couchdb/etc/local.d part of the command mounts the /home/couchdb/etc directory from the underlying host system as /opt/couchdb/etc/local.d inside the container, where CouchDB by default will write its dynamic configuration files.

You can also use couchdb as the base image for your own couchdb instance and provide your own version of the local.ini config file:

Example Dockerfile:

dockerfile
FROM couchdb

COPY local.ini /opt/couchdb/etc/

and then build and run

console
$ docker build -t you/awesome-couchdb .
$ docker run -d -p 5984:5984 you/awesome-couchdb

Remember that, with this approach, any newly written changes will still appear in the /opt/couchdb/etc/local.d directory, so it is still recommended to map this to a host path for persistence.

Logging

By default containers run from this image only log to stdout. You can enable logging to file in the configuration.

For example in local.ini:

ini
[log]
writer = file
file = /opt/couchdb/log/couch.log

It is recommended to then mount this path to a directory on the host, as CouchDB logging can be quite voluminous.

License

Apache CouchDB is licensed under the https://github.com/apache/couchdb/blob/master/LICENSE.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

Some additional license information which was able to be auto-detected might be found in https://github.com/docker-library/repo-info/tree/master/repos/couchdb.

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

更多相关 Docker 镜像与资源

以下是 couchdb 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:

  • library/mongo Docker 镜像说明
  • nocodb/nocodb Docker 镜像说明(NocoDB,Airtable 开源替代品,可视化数据库管理)
  • amd64/mongo Docker 镜像说明(MongoDB 数据库,AMD64 架构版本)

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 couchdb 镜像标签

docker pull docker.xuanyuan.run/couchdb:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull couchdb:<标签>

更多 couchdb 镜像推荐

bitnami/couchdb logo

bitnami/couchdb

Bitnami Secure Images(VMware Tanzu)
Bitnami安全镜像,用于部署和运行Apache CouchDB数据库,提供安全加固的运行环境。
5 次收藏50万+ 次下载
8 个月前更新
apache/couchdb logo

apache/couchdb

Apache 软件基金会镜像
非官方的CouchDB便捷二进制文件,适用于RESTful文档型数据库。
26 次收藏5000万+ 次下载
5 个月前更新
budibase/couchdb logo

budibase/couchdb

budibase
CouchDB 3.X版本Docker镜像,具备搜索功能,适用于需要搜索能力的NoSQL数据库应用场景。
50万+ 次下载
3 个月前更新
amd64/couchdb logo

amd64/couchdb

amd64
CouchDB是一款使用JSON存储文档、提供HTTP API并支持JavaScript/声明式索引的数据库。
5万+ 次下载
7 天前更新
arm64v8/couchdb logo

arm64v8/couchdb

arm64v8
CouchDB 是一个使用 JSON 存储文档、提供 HTTP API 并支持 JavaScript/声明式索引的数据库。
13 次收藏5万+ 次下载
7 天前更新
tutum/couchdb logo

tutum/couchdb

tutum
用于运行CouchDB数据库服务器的基础Docker镜像
3 次收藏1万+ 次下载
10 年前更新

查看更多 couchdb 相关镜像

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

Harbor 镜像源配置

Harbor Proxy Repository 对接专属域名

Portainer 镜像源配置

Portainer Registries 加速拉取

Nexus 镜像源配置

Nexus3 Docker Proxy 内网缓存

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

配置了专属域名后,docker search 为什么会报错?

docker search 限制

Docker Hub 上有的镜像,为什么在轩辕镜像网站搜不到?

站内搜不到镜像

机器不能直连外网时,怎么用 docker save / load 迁镜像?

离线 save/load

docker pull 拉插件报错(plugin v1+json)怎么办?

插件要用 plugin install

WSL 里 Docker 拉镜像特别慢,怎么排查和优化?

WSL 拉取慢

轩辕镜像安全吗?如何用 digest 校验镜像没被篡改?

安全与 digest

第一次用轩辕镜像拉 Docker 镜像,要怎么登录和配置?

新手拉取配置

轩辕镜像合规吗?轩辕镜像的合规是怎么做的?

镜像合规机制

错误码与失败问题

docker pull 提示 manifest unknown 怎么办?

manifest unknown

docker pull 提示 no matching manifest 怎么办?

no matching manifest(架构)

镜像已拉取完成,却提示 invalid tar header 或 failed to register layer 怎么办?

invalid tar header(解压)

Docker pull 时 HTTPS / TLS 证书验证失败怎么办?

TLS 证书失败

Docker pull 时 DNS 解析超时或连不上仓库怎么办?

DNS 超时

docker 无法连接轩辕镜像域名怎么办?

域名连通性排查

Docker 拉取出现 410 Gone 怎么办?

410 Gone 排查

出现 402 或「流量用尽」提示怎么办?

402 与流量用尽

Docker 拉取提示 UNAUTHORIZED(401)怎么办?

401 认证失败

遇到 429 Too Many Requests(请求太频繁)怎么办?

429 限流

docker login 提示 Cannot autolaunch D-Bus,还算登录成功吗?

D-Bus 凭证提示

为什么会出现「单层超过 20GB」或 413,无法加速拉取?

413 与超大单层

账号 / 计费 / 权限

轩辕镜像免费版和专业版有什么区别?

免费版与专业版区别

轩辕镜像支持哪些 Docker 镜像仓库?

支持的镜像仓库

镜像拉取失败还会不会扣流量?

失败是否计费

麒麟 V10 / 统信 UOS 提示 KYSEC 权限不够怎么办?

KYSEC 拦截脚本

如何在轩辕镜像申请开具发票?

申请开票

怎么修改轩辕镜像的网站登录和仓库登录密码?

修改登录密码

如何注销轩辕镜像账户?要注意什么?

注销账户

配置与原理类

写了 registry-mirrors,为什么还是走官方或仍然报错?

mirrors 不生效

怎么用 docker tag 去掉镜像名里的轩辕域名前缀?

去掉域名前缀

如何拉取指定 CPU 架构的镜像(如 ARM64、AMD64)?

指定架构拉取

用轩辕镜像拉镜像时快时慢,常见原因有哪些?

拉取速度原因

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
Docker 官方镜像
...
library/couchdb
博客Docker 镜像公告与技术博客
热门查看热门 Docker 镜像推荐
安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单,官方技术交流群:1072982923。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单,官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.