How to install ElasticSearch with Kibana on WSL 2 docker engine

Ion Utale
Dec 4, 2020

--

If you use the “docker WSL 2 engine” then run the 3 command bellow, 1 at the time:

wsl -d docker-desktop
sysctl -w vm.max_map_count=262144
exit

Create a network for es-stack

docker network create es-stack-network

Download and install elastic search

docker run -d --name elasticsearchdb --net es-stack-network -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:6.8.13

Download and install Kibana

docker run -d --name kibana-es-ui --net es-stack-network -e "ELASTICSEARCH_URL=http://elasticsearchdb:9200"  -p 5601:5601 kibana:6.8.13

That’s it! Have Fun!

--

--