seekdb

oceanbase/seekdb

oceanbase

seekdb Docker镜像用于快速搭建SeekDB测试环境,可在Docker Hub、quay.io及ghcr.io获取。注意:仅适用于测试,不建议生产环境;MacOS和Intel芯片上Docker版本>4.9.0存在已知问题,可通过指定链接下载兼容版本。

2 次收藏下载次数: 0状态:社区镜像维护者:oceanbase仓库类型:镜像最近更新:1 个月前
让 AI 帮你使用轩辕镜像?

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这段话即可:

请先阅读并遵守:https://xuanyuan.cloud/agents.md

未读文档前不要生成 pull 命令或排错方案。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

下载命令
点击查看

Deploy SeekDB with Docker

Introduction

The seekdb Docker image, available on https://hub.docker.com/r/oceanbase/seekdb, https://quay.io/repository/oceanbase/seekdb and https://ghcr.io/oceanbase/seekdb, is designed for users to quickly set up a SeekDB environment for testing purposes.

Key ***ations:

  • There are known issues running this image on MacOS and intel chip with docker version greater than 4.9.0, you can download the desired version of docker from this https://desktop.docker.com/mac/main/amd64/81317/Docker.dmg?_gl=17jelfd_gcl_auOTk5Nzk0MDUwLjE3MTE4ODMyNzM._gaNDQyMjE1MDE5LjE3MTE4ODMyNzQ._ga_XJWPQMJYHQ*MTcxOTIxOTEwMy4xMS4xLjE3MTkyMjEwMTAuNjAuMC4w.
  • This image is intended for testing only; do not use it in production environments.

Prerequisites

Before deploying seekdb, ensure that the following requirements are met:

  • The host machine should have at least 1 physical cores and 2GB of memory.
  • Docker should be installed and running on the host machine. Refer to the https://docs.docker.com/get-docker/.

Starting a SeekDB Instance

To start a SeekDB instance, use the following commands:

bash
docker run -d -p 2881:2881 -p 2886:2886 oceanbase/seekdb

# Execute init SQL scripts after bootstrap, you need to mount the directory containing the init scripts then specify the directory in container via environment variable INIT_SCRIPTS_PATH.
# Please do not change root user's password in SQL scripts. If you'd like to change root user's password, use environment variable ROOT_PASSWORD.
docker run -d -p 2881:2881 -p 2886:2886 -v {init_sql_folder_path}:/root/boot/init.d -e INIT_SCRIPTS_PATH=/root/boot/init.d oceanbase/seekdb

Supported Environment Variables

Below is a table of supported environment variables for the image:

Variable nameDescription
ROOT_PASSWORDThe password of user root
CPU_COUNTThe value of cpu_count, e.g. 4.
MEMORY_LIMITThe value of memory_limit, e.g. 2G.
LOG_DISK_SIZEThe value of log_disk_size, e.g. 2G.
DATAFILE_SIZEThe value of datafile_size, e.g. 2G.
DATAFILE_NEXTThe value of datafile_next, e.g. 2G.
DATAFILE_MAXSIZEThe value of datafile_maxsize, e.g. 50G.
INIT_SCRIPTS_PATHThe path in the container containing the init scripts.
SEEKDB_DATABASEThe name of the database to be created at startup.

If you'd like to modify other SeekDB parameters, you can do mount a configuration file into /etc/oceanbase/seekdb.cnf in the container, the default configuration file is as follows.

datafile_size=2G
datafile_next=2G
datafile_maxsize=50G
cpu_count=4
memory_limit=2G
log_disk_size=2G
# config the parameter in the following format
# key=value

The start command should be like this.

# **Note:** If you decide to use a configuration file, please don't specify the resource related environment variables.
docker run -d -p 2881:2881 -p 2886:2886 -v {config_file}:/etc/oceanbase/seekdb.cnf oceanbase/seekdb

Data Persistence

Seekdb deploys in directory /var/lib/oceanbase, if you'd like to persist the data on the host server, please mount an empty directory on the host server to this path.

Note: If you run seekdb container on windows, please use docker volume instead of directory on the host to ensure it works properly.

# On Linux or MacOS
mkdir -p seekdb
docker run -d -p 2881:2881 -p 2886:2886 -v $PWD/seekdb:/var/lib/oceanbase --name seekdb oceanbase/seekdb

# On Windows
docker volume create seekdb
docker run -d -p 2881:2881 -p 2886:2886 -v seekdb:/var/lib/oceanbase --name seekdb oceanbase/seekdb

Connecting to SeekDB Instance

mysql -h 127.0.0.1 -P 2881 -u root -p    # Connect with the root account

Access dashboard

The container provides a user-friendly web interface, you can access it in the browser http://${server_ip}:2886, the login password is the same as user root's password. If ROOT_PASSWORD is not set, leave the password field blank.

镜像拉取方式

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

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

docker pull docker.xuanyuan.run/oceanbase/seekdb:<标签>

DockerHub 原生拉取命令

docker pull oceanbase/seekdb:<标签>

用户好评

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

用户头像

oldzhang

运维工程师

Linux服务器

5

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

专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持99.95% SLA 保障付费会员免广告