# Elasticsearch in Docker

**URL:** https://discuss.elastic.co/t/elasticsearch-in-docker/74288
**Category:** Elasticsearch
**Created:** [February 7, 2017, 9:28pm UTC](https://discuss.elastic.co/t/elasticsearch-in-docker/74288 "2017-02-07T21:28:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deSelby](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@deSelby](https://discuss.elastic.co/u/deSelby)
#### Post date: [February 7, 2017, 9:28pm UTC](https://discuss.elastic.co/t/elasticsearch-in-docker/74288/1 "2017-02-07T21:28:55Z")

</div>

Installing ES 5.2.0 in a docker container. When elasticsearch starts up I get this line in the log file:

[i.n.u.i.MacAddressUtil] Failed to find a usable hardware address from the network interfaces; using random bytes: 34:f6:3b:4d:3c:07:eb:8d

I can curl elasticsearch inside the container and it responds, but the container never sets up a network link with the host. So ES is not reachable outside the container.

if I set the the network.host parameter to 0.0.0.0, I get a bootstrap failure and the task exits.

What can I do to hook ES up to the network interface?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 7, 2017, 11:55pm UTC](https://discuss.elastic.co/t/elasticsearch-in-docker/74288/2 "2017-02-07T23:55:34Z")

</div>

Have a look at [https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode)

---

<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: [March 7, 2017, 11:55pm UTC](https://discuss.elastic.co/t/elasticsearch-in-docker/74288/3 "2017-03-07T23:55:36Z")

</div>

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