oceanbase/seekdbThe seekdb Docker image, available on dockerhub, quay.io and ghcr.io, is designed for users to quickly set up a SeekDB environment for testing purposes.
Before deploying seekdb, ensure that the following requirements are met:
To start a SeekDB instance, use the following commands:
bashdocker 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
Below is a table of supported environment variables for the image:
| Variable name | Description |
|---|---|
| ROOT_PASSWORD | The password of user root |
| CPU_COUNT | The value of cpu_count, e.g. 4. |
| MEMORY_LIMIT | The value of memory_limit, e.g. 2G. |
| LOG_DISK_SIZE | The value of log_disk_size, e.g. 2G. |
| DATAFILE_SIZE | The value of datafile_size, e.g. 2G. |
| DATAFILE_NEXT | The value of datafile_next, e.g. 2G. |
| DATAFILE_MAXSIZE | The value of datafile_maxsize, e.g. 50G. |
| INIT_SCRIPTS_PATH | The path in the container containing the init scripts. |
| SEEKDB_DATABASE | The 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
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
mysql -h 127.0.0.1 -P 2881 -u root -p # Connect with the root account
The container provides a user-friendly web interface, you can access it in the browser [***]{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.
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
MacOS OrbStack 容器配置
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务