Skip to main content
  1. Posts/

[ElasticSearch] How to fix issue with elastic search container on windows with WSL and Powershell

·69 words·1 min
Table of Contents

Memory issue #

  • Open PowerShell
  • Run wsl -d docker-desktop inside PowerShell
  • Run sysctl -w vm.max_map_count=262144 inside the terminal
  • Run exit to exit the VM’s terminal

Initial setup #

Due to permission issues on Windows and WSL, there are some extra steps that we need to have. First add the following to the docker-compose.yml

...
 - xpack.security.enabled=false
...

Then run the following command in the terminal

sudo chown -R 1000:1000 .data/es-data-folder