Skip to content

Commit d39e68a

Browse files
committed
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.
1 parent 5753c34 commit d39e68a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/reference/setup/install/docker.asciidoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,18 @@ sudo sysctl -w vm.max_map_count=262144
199199
--------------------------------------------
200200
--
201201

202+
* Windows with https://docs.docker.com/docker-for-windows/wsl[Docker Desktop WSL 2 backend]
203+
+
204+
--
205+
The `vm.max_map_count` setting must be set in the docker-desktop container:
206+
207+
[source,sh]
208+
--------------------------------------------
209+
wsl -d docker-desktop
210+
sysctl -w vm.max_map_count=262144
211+
--------------------------------------------
212+
--
213+
202214
===== Configuration files must be readable by the `elasticsearch` user
203215

204216
By default, {es} runs inside the container as user `elasticsearch` using

0 commit comments

Comments
 (0)