简体   繁体   English

使用 Docker SQL 或 Docker MongoDB 容器连接元数据库

[英]Connecting Metabase with Docker SQL or Docker MongoDB container

I am trying to connect my Metabase docker container to my containers database containers.我正在尝试将我的 Metabase docker 容器连接到我的容器数据库容器。 docker ps 在此处输入图片说明

Metabase container created such as the docs: docker run -d -p 3000:3000 --name metabase metabase/metabase创建的元数据库容器,例如文档: docker run -d -p 3000:3000 --name metabase metabase/metabase

This are my networks:这是我的网络: 在此处输入图片说明

mongodb container and mysql container are also connected to the control-panel-back, but I don't think that matters. mongodb 容器和 mysql 容器也连接到了 control-panel-back,但我认为这无关紧要。 Either way: when I tried to connect the databases it gives me the following error:无论哪种方式:当我尝试连接数据库时,它给了我以下错误:

在此处输入图片说明 在此处输入图片说明

I used the IP of the connection.我使用了连接的IP。

docker network ls

docker inspect network_name

Use the IPAM.Config.Gateway for the Host.对主机使用 IPAM.Config.Gateway。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM