Browse Source

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.
Russ Cam 5 years ago
parent
commit
ad496dfa63
1 changed files with 12 additions and 0 deletions
  1. 12 0
      docs/reference/setup/install/docker.asciidoc

+ 12 - 0
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