# Elasticsearch docker image acts differently on a different host OS

**URL:** https://discuss.elastic.co/t/elasticsearch-docker-image-acts-differently-on-a-different-host-os/85427
**Category:** Elasticsearch
**Created:** [May 11, 2017, 2:42pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-image-acts-differently-on-a-different-host-os/85427 "2017-05-11T14:42:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jacekr](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@jacekr](https://discuss.elastic.co/u/jacekr)
#### Post date: [May 11, 2017, 2:42pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-image-acts-differently-on-a-different-host-os/85427/1 "2017-05-11T14:42:21Z")

</div>

hi Elasticsearch,

I'm trying to run ES docker image [docker.elastic.co/elasticsearch/elasticsearch:5.2.2](http://docker.elastic.co/elasticsearch/elasticsearch:5.2.2) so that it binds the port 9300 on non LO interface, so that other containers can connect to that port.

My tests suggest, that depending on the host OS, the container behaves in a different way.

- on windows host, it works fine, 9300 will be set to 0.0.0.0 by default
- on linux host (Centos 7) it will be set to 127.0.0.1 and when I try to change that by passing env. variable transport.host: 0.0.0.0 it fails with the following log:

2017-05-11T14:40:26.292101000Z [2017-05-11T14:40:26,291][WARN][i.n.u.i.MacAddressUtil] Failed to find a usable hardware address from the network interfaces; using random bytes: e5:10:81:65:27:26:0c:88  
2017-05-11T14:40:26.353358000Z [2017-05-11T14:40:26,348][INFO][o.e.t.TransportService] [Ac7UhUV] publish\_address {172.17.0.2:9300}, bound\_addresses {0.0.0.0:9300}  
2017-05-11T14:40:26.354933000Z [2017-05-11T14:40:26,353][INFO][o.e.b.BootstrapChecks] [Ac7UhUV] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks  
2017-05-11T14:40:26.360114000Z **ERROR: bootstrap checks failed**  
2017-05-11T14:40:26.360716000Z max virtual memory areas vm.max\_map\_count [65530] is too low, increase to at least [262144]  
2017-05-11T14:40:26.364435000Z [2017-05-11T14:40:26,362][INFO][o.e.n.Node] [Ac7UhUV] stopping ...  
2017-05-11T14:40:26.482141000Z [2017-05-11T14:40:26,480][INFO][o.e.n.Node] [Ac7UhUV] stopped  
2017-05-11T14:40:26.482864000Z [2017-05-11T14:40:26,481][INFO][o.e.n.Node] [Ac7UhUV] closing ...  
2017-05-11T14:40:26.502629000Z [2017-05-11T14:40:26,501][INFO][o.e.n.Node] [Ac7UhUV] closed

I'm running the container in this way:  
docker run -d --name kadme\_elastic -e "transport.host=0.0.0.0" [docker.elastic.co/elasticsearch/elasticsearch:5.2.2](http://docker.elastic.co/elasticsearch/elasticsearch:5.2.2)

Regards  
Jacek

---

<div class="post-metadata">

### Author: ![jacekr](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@jacekr](https://discuss.elastic.co/u/jacekr)
#### Post date: [May 11, 2017, 2:51pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-image-acts-differently-on-a-different-host-os/85427/2 "2017-05-11T14:51:06Z")

</div>

Setting the vm.max\_map\_count to the advised number does not help.  
The container exits after some time.

Regards  
Jacek

---

<div class="post-metadata">

### Author: ![Abhishek\_Purohit](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@Abhishek\_Purohit](https://discuss.elastic.co/u/Abhishek_Purohit)
#### Post date: [May 29, 2017, 4:01am UTC](https://discuss.elastic.co/t/elasticsearch-docker-image-acts-differently-on-a-different-host-os/85427/3 "2017-05-29T04:01:10Z")

</div>

this helped in our case -  
sudo sysctl -w vm.max\_map\_count=262144

---

<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: [June 26, 2017, 4:01am UTC](https://discuss.elastic.co/t/elasticsearch-docker-image-acts-differently-on-a-different-host-os/85427/4 "2017-06-26T04:01:22Z")

</div>

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