容器里的oceanbase启动了,外网如何访问

【问题现象及影响】
容器里面可以登录oceanbase,但是服务器外网怎么访问到docker里的容器,对应的服务器端口2881,2883也开通了,防火墙也重启了,请教下,多谢

是不是因为docker 里面服务配置成127.0.0.1,导致无法做宿主机和docker容器映射?

启动docker的时候有没有设置端口映射

[root@rundba ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cb8d9ac8ef24 oceanbase/oceanbase-ce “/bin/sh -c _boot” 3 days ago Up 3 minutes 0.0.0.0:2881->2881/tcp, :::2881->2881/tcp obstandalone
074b5cd99ca1 landnow/starrocks-test:v2.4.0 “/bin/sh -c /data/de…” 3 days ago Up 3 days 0.0.0.0:8030->8030/tcp, :::8030->8030/tcp, 0.0.0.0:8040->8040/tcp, :::8040->8040/tcp, 0.0.0.0:9030->9030/tcp, :::9030->9030/tcp starrocks-test
[root@rundba ~]# docker exec -it obstandalone ob-mysql sys
login as root@sys
Command is: obclient -h127.1 -uroot@sys -A -Doceanbase -P2881
Welcome to the OceanBase. Commands end with ; or \g.
Your OceanBase connection id is 3221487619
Server version: OceanBase_CE 4.0.0.0 (r100000272022110114-6af7f9ae79cd0ecbafd4b1b88e2886ccdba0c3be) (Built Nov 1 2022 14:57:18)

Copyright (c) 2000, 2018, OB Corporation Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

obclient [oceanbase]>

其它登录参考: ```
docker exec -it obstandalone ob-mysql sys # 连接 sys 租户的 root 用户
docker exec -it obstandalone ob-mysql root # 连接 test 租户的 root 用户
docker exec -it obstandalone ob-mysql test # 连接 test 租户的 test 用户