docker-compose.yml
version: “3.7”
services:
oceanbase:
image: quay.io/oceanbase/oceanbase-ce
hostname: oceanbase
volumes:
- /home/data/oceanbase-data/obdata:/root/ob
- /etc/localtime:/etc/localtime
command:
- “–ob_query_timeout=36000000000”
- “–ob_sys_password=ygxj@123456”
- “–ob_tenant_password=ygxj@123456”
- “–ob_tenant_name=ygxj”
environment:
# 部署 mini 的独立实例
- MINI_MODE=1
- TZ=Asia/Shanghai
- OB_QUERY_TIMEOUT=36000000000
- OB_ROOT_PASSWORD=ygxj@123456
- OB_SYS_PASSWORD=ygxj@123456
- OB_TENANT_PASSWORD=ygxj@123456
- OB_TENANT_NAME=ygxj
ports:
- “2881:2881”
networks:
- cloud
第一安装成功
check tenant connectable,
tenant is connectable,
set tenant password,
boot success!
然后重启容器,异常
[ERROR] OBD-1002: path: /root/ob is not empty.