Docker composer elc 6.2.4 Caused by: java.lang.IllegalStateException: Failed to create node environment

openapi_elc:
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
ports:
- 9200:9200
- 9300:9300
environment:
discovery.zen.ping.unicast.hosts: elasticsearch
#discovery.zen.minimum_master_nodes: 1
cluster.name: 'docker-cluster'
networks:
- bridge
volumes:
- './esdata:/usr/share/elasticsearch/data'
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager] `

当我部署 service时候 elasticsearch p抛出Caused by: java.lang.IllegalStateException: Failed to create node environment
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) ~[elasticsearch-6.2.4.jar:6.2.4]
Caused by: java.lang.IllegalStateException: Failed to create node environment,如果没有添加
environment and volumes everything is ok.
`

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.