# Kibana Docker image - how to update default value elasticsearch.hosts

**URL:** <https://discuss.elastic.co/t/kibana-docker-image-how-to-update-default-value-elasticsearch-hosts/170774>\
**Category:** Kibana\
**Created:** [March 4, 2019, 6:25pm UTC](https://discuss.elastic.co/t/kibana-docker-image-how-to-update-default-value-elasticsearch-hosts/170774 "2019-03-04T18:25:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![clouduser](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@clouduser](https://discuss.elastic.co/u/clouduser)\
**Post date:** [March 4, 2019, 6:25pm UTC](https://discuss.elastic.co/t/kibana-docker-image-how-to-update-default-value-elasticsearch-hosts/170774/1 "2019-03-04T18:25:15Z")

</div>

I have pulled docker image and hosted in Kubes. How do i edit the docker default value

elasticsearch.hosts = [http://elasticsearch:9200/](http://elasticsearch:9200/)

any thoughts

**Error Message**  
{"type":"log","@timestamp":"2019-03-04T18:17:29Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"No living connections"}

{"type":"log","@timestamp":"2019-03-04T18:17:32Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"Unable to revive connection: [http://elasticsearch:9200/](http://elasticsearch:9200/)"}

---

<div class="post-metadata">

**Author:** ![jarpy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jarpy/32/51290_2.png) [@jarpy](https://discuss.elastic.co/u/jarpy)\
**Post date:** [March 5, 2019, 1:30am UTC](https://discuss.elastic.co/t/kibana-docker-image-how-to-update-default-value-elasticsearch-hosts/170774/2 "2019-03-05T01:30:21Z")

</div>

There are [several methods](https://www.elastic.co/guide/en/kibana/current/docker.html#configuring-kibana-docker) for configuring the image.

Bind-mounted configuration is a very robust and versatile choice.

---

<div class="post-metadata">

**Author:** ![clouduser](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@clouduser](https://discuss.elastic.co/u/clouduser)\
**Post date:** [March 5, 2019, 3:49pm UTC](https://discuss.elastic.co/t/kibana-docker-image-how-to-update-default-value-elasticsearch-hosts/170774/3 "2019-03-05T15:49:14Z")

</div>

I am trying to deploy image in Kubernetes as I have to Kube scripts instead of docker compose.

Bind mounted configuration will not help me. Any other choices ?

---

<div class="post-metadata">

**Author:** ![jarpy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jarpy/32/51290_2.png) [@jarpy](https://discuss.elastic.co/u/jarpy)\
**Post date:** [March 5, 2019, 9:23pm UTC](https://discuss.elastic.co/t/kibana-docker-image-how-to-update-default-value-elasticsearch-hosts/170774/4 "2019-03-05T21:23:40Z")

</div>

A lot of people like to [use environment variables](https://www.elastic.co/guide/en/kibana/current/docker.html#environment-variable-config), too.

---

<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:** [April 2, 2019, 9:23pm UTC](https://discuss.elastic.co/t/kibana-docker-image-how-to-update-default-value-elasticsearch-hosts/170774/5 "2019-04-02T21:23:43Z")

</div>

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