镜像 oceanbase/oceanbase-ce
运行
docker-compose up oceanbase
[+] Building 0.0s (0/0)
[+] Running 1/0
Container oceanbase Created 0.0s
Attaching to oceanbase
oceanbase | do normal boot
oceanbase | Are you sure you want to deploy the database as the root user? [y/n] [Default: n]: See https://www.oceanbase.com/product/ob-deployer/error-codes .
oceanbase | Trace ID: 6e491a32-b96e-11f0-be50-0242ac130004
oceanbase | If you want to view detailed obd logs, please run: obd display-trace 6e491a32-b96e-11f0-be50-0242ac130004
oceanbase | boot failed!
oceanbase exited with code 1
提示Are you sure you want to deploy the database as the root user 这个还默认n
我快无语了,做个镜像还不让人用
oceanbase | boot failed!
你这里提示部署报错了
我发现我映射了地址
volumes:
# - ./oceanbase/ob:/root/ob
# - ./oceanbase/obd/.obd:/root/.obd
我注释了就可以了
容器怎么常期保存数据
容器化ob这边不推荐使用,无法确保其可持久化运行