linux - docker错误elasticsearch镜像无法使用安装文件提供的参数访问

标签 linux docker elasticsearch docker-compose elasticsearch-5

我有一个带有 docker swarm 的集群环境。 我将 Elasticsearch 镜像从 2.4 升级到 5.6,现在当我部署应用程序时,出现错误:

ERROR: Validation failed: Elastic search not accessible with the parameters provided by the setup file. Hosts: nga_es, Port: 9300, Cluster name: elasticsearch. Error: None of the configured nodes are available.

我从尝试连接到 Elasticsearch 的第二个容器中收到错误。

这是我写的docker-compose.yml文件(版本3):(与弹性相关的行):

 nga_es:
networks:
  octanet:
    aliases:
    - nga_es
environment: 
  ES_JAVA_OPTS: '-Xms4G -Xmx4G'
tty: true
image: elasticsearch:5.6
ports:
- 9300
- 9200
stdin_open: true

有人知道我为什么会收到此错误吗?我没有主意了。

最佳答案

您是否阅读了有关该 elasticsearch:5 镜像的所有 Docker Hub 注释?

关于linux - docker错误elasticsearch镜像无法使用安装文件提供的参数访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48608972/

相关文章:

linux - 运行 Docker 脚本时未找到文件,但在另一个 Docker 脚本中找到了文件

networking - 如何在运行的vagrant box上转发端口

linux - : regexp and file handling左右的Shell程序代码

linux - Shell 脚本 - 检查文件夹并删除该文件夹中超过一小时的文件

PHP Symfony 命令在手动运行之前无法从 cron 运行

java - jboss_init_redhat 不工作

selenium - 如何使用可变端口(4444)创建 Selenium /独立 Chrome 图像

elasticsearch - Elasticsearch 数组中没有匹配项

apache-spark - Glue 上的 Spark 无法连接到 AWS/ElasticSearch

ElasticSearch:为什么query_string不区分大小写而通配符区分大小写?