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

**URL:** <https://discuss.elastic.co/t/curl-56-recv-failure-connection-reset-by-peer-with-docker/191199>\
**Category:** Elasticsearch\
**Created:** [July 18, 2019, 12:56pm UTC](https://discuss.elastic.co/t/curl-56-recv-failure-connection-reset-by-peer-with-docker/191199 "2019-07-18T12:56:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChenSijia](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@ChenSijia](https://discuss.elastic.co/u/ChenSijia)\
**Post date:** [July 18, 2019, 12:56pm UTC](https://discuss.elastic.co/t/curl-56-recv-failure-connection-reset-by-peer-with-docker/191199/1 "2019-07-18T12:56:02Z")

</div>

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:

 ![%E6%8D%95%E8%8E%B74](https://us1.discourse-cdn.com/elastic/original/3X/4/5/4501a61e7642ee3ff6d43ee3df6b62765d6bf6bd.png)  
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: "\*"

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 15, 2019, 12:56pm UTC](https://discuss.elastic.co/t/curl-56-recv-failure-connection-reset-by-peer-with-docker/191199/2 "2019-08-15T12:56:08Z")

</div>

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