更新时间:2023-10-11 13:31:46
两种解决方法:首先是检查为您的Elasticsearch设置创建的网络docker-compose( docker network ls
),然后然后使用
Two ways to solve this: First is to check what network docker-compose created for your elasticsearch setting (docker network ls
) and then run your DW app with
docker run --network =<网络名称>...
第二种方法是创建一个网络 docker network create elastic
并将其用作docker compose文件以及DW应用程序的docker run命令中的外部网络.
Second way is to create a network docker network create elastic
and use it as external network in your docker compose file as well as in your docker run command for the DW app.
Docker撰写文件可能看起来像
Docker compose file could then look like
...
services:
elasticsearch:
networks:
elastic:
...
networks:
elastic:
external: true