Docker install question

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.

    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'

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.

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

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