RethinkDB是一个开源文档数据库,便于构建和扩展实时应用程序。
RethinkDB 镜像文档
快速参考
-
维护者:
https://github.com/rethinkdb/rethinkdb-dockerfiles -
获取帮助:
https://dockr.ly/comm-slack、Server Fault、https://unix.stackexchange.com/help/on-topic 或 https://stackoverflow.com/help/on-topic
支持的标签及对应的 Dockerfile 链接
- https://github.com/rethinkdb/rethinkdb-dockerfiles/blob/48876a66c3be922c6b01c436bf78d662e53bceef/bookworm/2.4.4/Dockerfile
快速参考(续)
-
问题提交地址:
https://github.com/rethinkdb/rethinkdb-dockerfiles/issues?q= -
支持的架构:(https://github.com/docker-library/official-images#architectures-other-than-amd64)
https://hub.docker.com/r/amd64/rethinkdb/、https://hub.docker.com/r/arm64v8/rethinkdb/、https://hub.docker.com/r/s390x/rethinkdb/ -
已发布镜像 artifact 详情:
https://github.com/docker-library/repo-info/blob/master/repos/rethinkdb(https://github.com/docker-library/repo-info/commits/master/repos/rethinkdb)
(镜像元数据、传输大小等) -
镜像更新:
https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Frethinkdb
https://github.com/docker-library/official-images/blob/master/library/rethinkdb(https://github.com/docker-library/official-images/commits/master/library/rethinkdb) -
本描述的来源:
https://github.com/docker-library/docs/tree/master/rethinkdb(https://github.com/docker-library/docs/commits/master/rethinkdb)
什么是 RethinkDB?
RethinkDB 是一个开源分布式数据库,旨在存储 JSON 文档并轻松扩展到多台机器。它易于设置和学习,具有简单但强大的查询语言,支持表连接、分组、聚合和函数。
如何使用本镜像
在工作目录中挂载数据启动实例
镜像的默认 CMD 为 rethinkdb --bind all,因此 RethinkDB 守护进程将绑定到容器可用的所有网络接口(默认情况下,RethinkDB 仅接受来自 localhost 的连接)。
bashdocker run --name some-rethink -v "$PWD:/data" -d docker.xuanyuan.run/rethinkdb
将实例连接到应用程序
bashdocker run --name some-app --link some-rethink:rdb -d docker.xuanyuan.run/application-that-uses-rdb
在同一主机上连接到 Web 管理界面
bash$BROWSER "http://$(docker inspect --format \ '{{ .NetworkSettings.IPAddress }}' some-rethink):8080"
通过 SSH 连接远程/虚拟主机上的 Web 管理界面
其中 remote 是远程 user@hostname 的别名:
bash# 启动端口转发 ssh -fNTL localhost:8080:$(ssh remote "docker inspect --format \ '{{ .NetworkSettings.IPAddress }}' some-rethink"):8080 remote # 在浏览器中打开界面 xdg-open http://localhost:8080 # 停止端口转发 kill $(lsof -t -i @localhost:8080 -sTCP:listen)
配置
有关使用和配置 RethinkDB 集群的信息,请参阅 官方文档。
镜像变体
rethinkdb 镜像有多种版本,每种版本设计用于特定场景。
rethinkdb:<version>
这是默认镜像。如果不确定自己的需求,可能需要使用此版本。它既可用作临时容器(挂载源代码并启动容器以运行应用),也可用作构建其他镜像的基础。
某些标签可能包含类似 bookworm 的名称,这些是 https://wiki.debian.org/DebianReleases 发行版的代号,表示镜像基于哪个发行版构建。如果镜像需要安装除自带包之外的其他软件包,建议明确指定其中一个代号,以减少 Debian 新版本发布时的兼容性问题。
rethinkdb:<version>-slim
此镜像不包含默认标签中的常用软件包,仅包含运行 rethinkdb 所需的最小软件包。除非在仅部署 rethinkdb 镜像且有空间限制的环境中使用,否则强烈建议使用此仓库的默认镜像。
许可
查看此镜像中包含软件的 https://raw.githubusercontent.com/rethinkdb/rethinkdb/next/LICENSE。
与所有 Docker 镜像一样,这些镜像可能还包含其他软件,这些软件可能使用其他许可(例如基础发行版中的 Bash 等,以及主要软件的任何直接或间接依赖项)。
一些能够自动检测到的其他许可信息可能位于 https://github.com/docker-library/repo-info/tree/master/repos/rethinkdb 中。
对于任何预构建镜像的使用,镜像用户有责任确保对该镜像的任何使用都符合其中包含的所有软件的相关许可。
更多相关 Docker 镜像与资源
以下是 rethinkdb 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
library/rethinkdb Related Documentation
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务
