# Docker install question

**URL:** <https://discuss.elastic.co/t/docker-install-question/228620>\
**Category:** Kibana\
**Created:** [April 18, 2020, 6:40am UTC](https://discuss.elastic.co/t/docker-install-question/228620 "2020-04-18T06:40:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![werowe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/werowe/32/47523_2.png) [@werowe](https://discuss.elastic.co/u/werowe)\
**Post date:** [April 18, 2020, 6:40am UTC](https://discuss.elastic.co/t/docker-install-question/228620/1 "2020-04-18T06:40:45Z")

</div>

There's something not logical about the procedure for using KIbana and ElasticSearch docker images. You first start Elasticsearch. That then takes up port 5601, which is where Kibana listens. But there is no http service there. So you try to start Kibana using the container ID of the running Elasticsearch docker process, But then it says port 5601 is already in use. So how do you start KIbana? And how do you bind it to a routable IP address. The instructions say you can pass an environment variable SERVER\_HOME to do that. But it just ignores that.

```auto
    sudo docker pull docker.elastic.co/elasticsearch/elasticsearch:7.6.2

        sudo nohup docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.6.2&

        sudo docker pull docker.elastic.co/kibana/kibana:7.6.2

        sudo docker run --link ed618e4091f2 -p 5601:5601 docker.elastic.co/kibana/kibana:7.6.2 -e SERVER_HOST='paris2x'

```

---

<div class="post-metadata">

**Author:** ![J7mbo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j7mbo/32/64999_2.png) [@J7mbo](https://discuss.elastic.co/u/J7mbo)\
**Post date:** [April 18, 2020, 9:11am UTC](https://discuss.elastic.co/t/docker-install-question/228620/2 "2020-04-18T09:11:37Z")

</div>

> [@werowe](#):
>
> You first start Elasticsearch. That then takes up port 5601

Elasticsearch doesn't take port 5601. It only takes 9200 and 9300 as in your example.

Port 5601 will only already be in use if you have another kibana container using it.

---

<div class="post-metadata">

**Author:** ![werowe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/werowe/32/47523_2.png) [@werowe](https://discuss.elastic.co/u/werowe)\
**Post date:** [April 28, 2020, 9:28am UTC](https://discuss.elastic.co/t/docker-install-question/228620/3 "2020-04-28T09:28:11Z")

</div>

I solved it. I left off the text "elasticsearch" after the containder id. So it should be:

sudo nohup docker run --link 4a867fcd2248:elasticsearch -p 5601:5601 kibana:7.6.2

---

<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:** [May 26, 2020, 9:29am UTC](https://discuss.elastic.co/t/docker-install-question/228620/4 "2020-05-26T09:29:30Z")

</div>

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