How to install ElasticSearch with Kibana on WSL 2 docker engine

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

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!




Full stack developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What is “Web Development”?

Activity Selection Problem

Top App Developers Interview Follow Up: Konstant Infosolutions

Tutorial Fuzzy Logic Mamdani for Arduino

Tutorial Fuzzy Logic Mamdani for Arduino

How to Manage Google Groups, Users and Service Accounts in GCP using Terraform

Magento 2.4.3 Release Notes: Important Releases & Highlight Updates in 2021

Raft :  Understandable Distributed Consensus

Android Firebase Authentication with Google SignIn

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Full stack developer

More from Medium

Setup Local Integration Environment with K3s and Docker Compose

Install cert-manager to setup SSL with Let’s Encrypt and Cloudflare DNS with automatic renewal…

OAuth2 Proxy 4— Secure between Router and OAuth2 Proxy