Running Kibana on Docker

There are a number of documents on how to run Kibana on Docker using a docker-compose file. The instructions from Elastic have you create a link, but there is nothing as simple as the commands below.

docker container run -d --rm -e ELASTICSEARCH_HOSTS=https://{YOUR_SERVER_IP_HERE}:9200 -p 5601:5601 docker.elastic.co/kibana/kibana:7.10.0

This will create an instance of Kibana that is removed when you are done with it. You just need to replace the {YOUR_SERVER_IP_HERE} with the IP address or DNS name of the server, e.g. localhost.

If you need to provide a custom kibana.yml, you can create the files locally and bind mount them as shown below.

Powershell Example

docker container run -d --rm -e ELASTICSEARCH_HOSTS=https://{YOUR_SERVER_IP_HERE}:9200 -v ${PWD}/kibana/:/usr/share/kibana/config/ -p 5601:5601 docker.elastic.co/kibana/kibana:7.10.0

MacOS/Linux/UNIX Example

docker container run -d --rm -e ELASTICSEARCH_HOSTS=https://{YOUR_SERVER_IP_HERE}:9200 -v $(PWD)/kibana/:/usr/share/kibana/config/ -p 5601:5601 docker.elastic.co/kibana/kibana:7.10.0

John Yeary

Caffeinated Java Programmer, and former Java Software Architect at Orange Bees and Kopis, and current Senior Developer at Velosio. My opinions are my own.

Greenville, South Carolina, USA johnyeary.com
blog comments powered by Disqus