From 152d3303693abdfb38ed6e60db0e129f6ef714ca Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Thu, 6 Aug 2020 14:26:49 +1000 Subject: [PATCH] Change vm.max_map_count on Docker WSL2 backend (#58153) This commit adds docs for how to change vm.max_map_count when running on Docker Desktop with WSL2 backend on Windows. --- docs/reference/setup/install/docker.asciidoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/reference/setup/install/docker.asciidoc b/docs/reference/setup/install/docker.asciidoc index 80052c4db6d..a3927bf8582 100644 --- a/docs/reference/setup/install/docker.asciidoc +++ b/docs/reference/setup/install/docker.asciidoc @@ -199,6 +199,18 @@ sudo sysctl -w vm.max_map_count=262144 -------------------------------------------- -- +* Windows with https://docs.docker.com/docker-for-windows/wsl[Docker Desktop WSL 2 backend] ++ +-- +The `vm.max_map_count` setting must be set in the docker-desktop container: + +[source,sh] +-------------------------------------------- +wsl -d docker-desktop +sysctl -w vm.max_map_count=262144 +-------------------------------------------- +-- + ===== Configuration files must be readable by the `elasticsearch` user By default, {es} runs inside the container as user `elasticsearch` using