专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏

oceanbase/oceanbase-ce Docker 镜像 - 轩辕镜像

oceanbase-ce
oceanbase/oceanbase-ce
OceanBase是由蚂蚁集团自主研发的开源分布式混合事务/分析处理(HTAP)数据库管理系统,具备高可用性、高并发处理能力和海量数据存储能力,兼容MySQL等主流数据库协议,可同时支持在线事务处理(OLTP)与实时分析处理(OLAP),广泛应用于***、电商、政务等关键业务领域,为企业提供稳定高效、兼具事务与分析能力的数据服务。
34 收藏0 次下载activeoceanbase镜像
🚀专业版镜像服务,面向生产环境设计
版本下载
🚀专业版镜像服务,面向生产环境设计

Deploy OceanBase with Docker

Introduction

The oceanbase-ce Docker image, available on dockerhub, quay.io and ghcr.io, is designed for users to quickly set up an OceanBase environment for testing purposes.

Key Considerations:
  • This image is intended for testing only; do not use it in production environments.
  • The image supports the setup of a single-instance cluster only.
  • This image is not designed for Kubernetes. For running containerized OceanBase on Kubernetes, refer to the ob-operator repository.

Prerequisites

Before deploying oceanbase-ce, ensure that the following requirements are met:

  • The host machine should have at least 2 physical cores and 8GB of memory.
  • Docker should be installed and running on the host machine. Refer to the Docker installation guide.

Starting an OceanBase Instance

To start an OceanBase instance, use one of the following docker run commands:

bash
# Deploy a mini mode instance
docker run -p 2881:2881 --name oceanbase-ce -d oceanbase/oceanbase-ce

# Deploy an instance to utilize the full resource of the container
docker run -p 2881:2881 --name oceanbase-ce -e MODE=normal -d oceanbase/oceanbase-ce

# Deploy an instance using fastboot mode
docker run -p 2881:2881 --name oceanbase-ce -e MODE=slim -d oceanbase/oceanbase-ce

# Execute init SQL scripts after bootstrap, do not change root user's password in SQL scripts.
# If you'd like to change root user's password, use variable OB_TENANT_PASSWORD.
docker run -p 2881:2881 --name oceanbase-ce -v {init_sql_folder_path}:/root/boot/init.d -d oceanbase/oceanbase-ce

The bootstrap procedure may take up to five minutes. Verify the bootstrap completion by running:

docker logs oceanbase-ce | tail -1

Expected output:

boot success!

Connecting to OceanBase Instance

Note:

  • Users created in the instance via script use empty passwords by default.
  • The default general non-sys tenant is 'test', so 'root@test' is used as the username.

For local connections using obclient or mysql client:

mysql -h127.0.0.1 -P2881 -uroot       # Connect with the root account of sys tenant
mysql -h127.0.0.1 -P2881 -uroot@test  # Connect with the root account of a general tenant

Supported Environment Variables

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

Variable nameDefault valueDescription
MODE{mini, slim, normal}mini indicates that the container will use the least amount of resource
normal indicates that the container will use as much as possible of the container resource
slim indicates that the container will only start observer using fastboot mode, the tenant is named as test, tenant and resource configurations will not take effect.
EXIT_WHILE_ERRORtrueWhether quit the container when failed to start observer. if you set EXIT_WHILE_ERROR=false, the container will not exit and you can use log into the container for debugging.
OB_CLUSTER_NAMEobclusterThe oceanbase cluster name
OB_TENANT_NAMEtestThe oceanbase mysql tenant name
OB_MEMORY_LIMIT6GThe oceanbase cluster memory_limit configuration
OB_DATAFILE_SIZE5GThe oceanbase cluster datafile_size configuration
OB_LOG_DISK_SIZE5GThe oceanbase cluster log_disk_size configuration
OB_SYS_PASSWORDThe oceanbase root user password of sys tenant
OB_TENANT_PASSWORDThe oceanbase root user password of mysql tenant
OB_SYSTEM_MEMORY1GThe oceanbase cluster system_memory configuration
OB_TENANT_MINI_CPUThe oceanbase tenant mini_cpu configuration
OB_TENANT_MEMORY_SIZEThe oceanbase tenant memory_size configuration
OB_TENANT_LOG_DISK_SIZEThe oceanbase tenant log_disk_size configuration

Running Sysbench Script

The oceanbase-ce image includes the sysbench tool for benchmarking. Use the following command to run a sysbench test:

docker exec -it oceanbase-ce obd test sysbench obcluster

Data Persistence

By default, oceanbase-ce deploys OceanBase under /root/ob and saves its configurations under /root/.obd/cluster. Use the following command to persist data on the host:

mkdir -p ob
mkdir -p obd/cluster
docker run -d -p 2881:2881 -v $PWD/ob:/root/ob -v $PWD/obd/cluster:/root/.obd/cluster --name oceanbase oceanbase/oceanbase-ce

Fault Diagnosis

The enable_rich_error_msg parameter is enabled by default during Docker startup. If an error occurs, you can obtain detailed error information using the trace command.

Deployment & Usage Documentation

OCEANBASE-CE Docker 容器化部署指南

OceanBase CE(Community Edition)是一款开源的分布式HTAP(Hybrid Transactional and Analytical Processing)数据库管理系统,具备高可用、高扩展、高性能的特性,适用于海量数据存储与处理场景。通过Docker容器化部署OceanBase CE,可以快速搭建测试环境,简化部署流程,降低环境配置复杂度。本文将详细介绍OceanBase CE的Docker容器化部署方案,包括环境准备、镜像拉取、容器部署、功能测试及生产环境建议等内容。

Read More
查看更多 oceanbase-ce 相关镜像 →
oceanbase/oceanbase-cloud-native logo
oceanbase/oceanbase-cloud-native
by oceanbase
OceanBase数据库镜像,需与ob-operator配合使用,提供分布式关系型数据库功能。
8.8K pulls
上次更新:1 个月前
oceanbase/oceanbase-dashboard logo
oceanbase/oceanbase-dashboard
by oceanbase
用于在Kubernetes上管理OceanBase的仪表盘
10K+ pulls
上次更新:5 个月前
oceanbase/oceanbase-xe logo
oceanbase/oceanbase-xe
by oceanbase
OceanBase Database 2.2 Express Edition是蚂蚁集团自主研发的企业级分布式关系数据库,具备数据强一致、高可用、高性能、在线扩展能力,高度兼容SQL标准及主流关系数据库,低成本且经过大规模金融场景长期验证,适用于支撑核心业务系统。
42.7K pulls
上次更新:5 年前
oceanbase/oceanbase-helper logo
oceanbase/oceanbase-helper
by oceanbase
暂无描述
851 pulls
上次更新:4 个月前
oceanbase/obproxy-ce logo
oceanbase/obproxy-ce
by oceanbase
OceanBase Database Proxy (ODP)是OceanBase数据库的专用代理服务器,用于接收用户SQL请求并转发至目标OBServer,再将执行结果返回给用户。
10K+ pulls
上次更新:17 天前
oceanbase/cert-manager-controller logo
oceanbase/cert-manager-controller
by oceanbase
cert-manager-controller 组件的镜像,用于在 Kubernetes 集群中自动化 TLS 证书的颁发、更新、吊销等生命周期管理,是 cert-manager 工具的核心控制器组件。
10K+ pulls
上次更新:2 年前

轩辕镜像配置手册

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

登录仓库拉取

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

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

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 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

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

oldzhang的头像

oldzhang

运维工程师

Linux服务器

5

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

轩辕镜像
镜像详情
...
oceanbase/oceanbase-ce
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
提交工单
免费获取在线技术支持请 提交工单,官方QQ群:13763429 。
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
免费获取在线技术支持请提交工单,官方QQ群: 。
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.
轩辕镜像 官方专业版 Logo
轩辕镜像轩辕镜像官方专业版
首页个人中心搜索镜像
交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 13763429