Curl: (56) Recv failure: Connection reset by peer with docker

Hi,I user docker command docker run -itd -p 9200:9200 -p 9300:9300 --name elasticsearch -v /elasticsearch/data:/usr/share/elasticsearch/data --restart=always 45ff2ef9a219
the container is running but I use curl -GET localhost:9200 get the curl: (56) Recv failure: Connection reset by peer docker status is:


if any reason because the elasticsearch.yml is not correct?
network.host: 0.0.0.0
node.name: node-1
node.master: true
node.data: true
cluster.name: my-application
http.port: 9200
discovery.zen.ping.unicast.hosts: ["localhost:9201", "localhost:9202"]
http.cors.enabled: true
http.cors.allow-origin: "*"

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