OceanBase 社区版 3.1.3 Docker镜像尝鲜,能错过?不存在的!

社区群里的小伙伴在贫困线上挣扎,仅有的内存都分给OceanBase Docker了,还是启动不起来??别担心,OceanBase 社区版 3.1.3 Docker镜像发布了,支持2C8G丝滑启动,快来尝尝鲜!!!

获取链接:https://hub.docker.com/search?q=oceanbase&sort=updated_at&order=desc

谁会是第四个下载的人?加快脚步了。。。。

Show The Code~

1.拉取镜像

$ docker pull oceanbase/oceanbase-ce-standalone:v3.1.3

2.运行容器

$ docker run -p 2881:2881 --name obce-standalone -d oceanbase/oceanbase-ce-standalone:v3.1.3

3.登录容器系统

$ docker exec -it obce-standalone bash

4.连一把OB看看

[root@9dd754253d85 ob]# obclient -h localhost -S /root/ob/run/mysql.sock -uroot@sys -P2881 -c -A oceanbase Welcome to the OceanBase. Commands end with ; or \g. Your MySQL connection id is 3221487736 Server version: 5.7.25 OceanBase 3.1.2 (r10000392021123010-d4ace121deae5b81d8f0b40afbc4c02705b7fc1d) (Built Dec 30 2021 02:47:29) Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement. MySQL [oceanbase]> show databases; ±-------------------+ | Database | ±-------------------+ | oceanbase | | information_schema | | mysql | | SYS | | LBACSYS | | ORAAUDITOR | | test | ±-------------------+ 7 rows in set (0.002 sec)

5.再见

MySQL [oceanbase]> exit Bye

6.放个容器启动日志给大家看看吧

$ docker logs obce-standalone generate boot.yaml … create boot dirs and deploy ob cluster … Package oceanbase-ce-3.1.2 is available. install oceanbase-ce-3.1.2 for local ok Cluster param config check ok Open ssh connection ok Generate observer configuration x [ERROR] (127.0.0.1) / not enough disk space. (Avail: 32.8G, Need: 74.0G). Use `redo_dir` to set other disk for clog See OceanBase 社区. generate boot.yaml … create boot dirs and deploy ob cluster … oceanbase-ce-3.1.2 already installed. Cluster param config check ok Open ssh connection ok Generate observer configuration ok oceanbase-ce-3.1.2 already installed. ±------------------------------------------------------------------------------------------+ | Packages | ±-------------±--------±----------------------±-----------------------------------------+ | Repository | Version | Release | Md5 | ±-------------±--------±----------------------±-----------------------------------------+ | oceanbase-ce | 3.1.2 | 10000392021123010.el7 | 7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed | ±-------------±--------±----------------------±-----------------------------------------+ Repository integrity check ok Parameter check ok Open ssh connection ok Remote oceanbase-ce-3.1.2-7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed repository install ok Remote oceanbase-ce-3.1.2-7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed repository lib check !! [WARN] 127.0.0.1 oceanbase-ce-3.1.2-7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed require: libmariadb.so.3 Try to get lib-repository Package oceanbase-ce-libs-3.1.2 is available. install oceanbase-ce-libs-3.1.2 for local ok Use oceanbase-ce-libs-3.1.2-94fff0ab31de053051dba66039e3185fa390cad5 for oceanbase-ce-3.1.2-7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed Remote oceanbase-ce-libs-3.1.2-94fff0ab31de053051dba66039e3185fa390cad5 repository install ok Remote oceanbase-ce-3.1.2-7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed repository lib check ok Cluster status check ok Initializes observer work home ok obcluster deployed Get local repositories and plugins ok Open ssh connection ok Load cluster param plugin ok Check before start observer ok [WARN] (127.0.0.1) clog and data use the same disk (/) Start observer ok observer program health check ok Connect to observer ok Initialize cluster Cluster bootstrap ok Wait for observer init ok ±--------------------------------------------+ | observer | ±----------±--------±-----±------±-------+ | ip | version | port | zone | status | ±----------±--------±-----±------±-------+ | 127.0.0.1 | 3.1.2 | 2881 | zone1 | active | ±----------±--------±-----±------±-------+ obcluster running Get local repositories and plugins ok Open ssh connection ok Connect to observer ok Create tenant test ok start ob cluster … Get local repositories and plugins ok Open ssh connection ok Load cluster param plugin ok Cluster status check ok Deploy “obcluster” is running boot success!

完事了,如果你还意犹未尽,赶紧去下载镜像自己试试吧~

没人回复我自己顶一下,看到的小伙伴抓紧去下载尝试啦~

顶一个,明天白天试下

1 个赞
docker pull oceanbase/oceanbase-ce-standalone:v3.1.3


1 个赞

服务器没法连网有办法吗

学习学习了

貌似没有联网的机器还是没办法

没有能联网的机器,第一个必选作业就做不了。。。

现在还有不能联网的机器么

现在还有不能联网的机器么

有啊,公司服务器不让连外网

1 个赞

[ERROR] (127.0.0.1) / not enough disk space. (Avail: 32.8G, Need: 74.0G). Use

redo_dir
to set other disk for clog


你这报错了也能起起来吗?