Orientdb不能在Docker容器中插入数据

我正在使用docker来使用orientdb。 在我的本地主机中使用我设法插入数据到数据库使用

OServerAdmin serverAdmin = new OServerAdmin("remote:localhost:2424").connect("root","password"); 

但是,当我尝试使用docker容器做同样的事情我pipe理连接创build数据库,但我不能插入我的数据

 OrientGraphFactory factory = new OrientGraphFactory("remote:172.17.0.2:2424/CartoesPagamentos").setupPool(1,10); OrientGraph graph = factory.getTx(); 

关于为什么我可以使用API​​连接和创build数据库但不能插入任何数据的任何想法?

编辑:

我运行console.sh并连接到我的docker容器,像这样CONNECT远程:172.17.0.2:2424 / CartoesPagamentos根密码,我试图插入一个顶点,它的工作。

有关如何运行orientDB docker容器的文档:

https://hub.docker.com/_/orientdb/

您正在使用此命令运行:

docker run --name cartoesPagamentoTeste -v /orientdb/config -it orient db:latest server.sh

你不暴露端口到本地主机,似乎你提供了一个configuration文件夹作为卷:如文档页面所述,如果你提供(又称覆盖)一个空的configuration文件夹,东方将从一个非常小的configuration开始。

所以,请仔细阅读上面链接的文档,并阅读Docker文档。

你确定吗?

OrientGraph graph = factory.getTx();

作品?

你能通过这个地址172.17.0.2通过浏览器orientDbpipe理员用户界面访问吗? 你也可以通过下一个命令检查orientDb docker日志:

docker日志-f {容器名称或散列}