Closed tchiaspko closed 11 months ago
https://github.com/spujadas/elk-docker/issues/99#issuecomment-399751979 says it pretty well how you got to define the value these days. Back when I created the images the current solution worked, but looks like that has changed.
Thanks tboerger, I figured it out last night. I though it has to be set inside the docker
I am on a Mac using colima instead of Docker Desktop so instead of running the sysctl on my Mac, I have to do it inside the colima VM like this
colima ssh -- sudo sysctl -w vm.max_map_count=262144
Running the sysctl on my Mac doesn't work.
sudo sysctl -w vm.max_map_count=262144
Password:
sysctl: unknown oid 'vm.max_map_count'
Here is the answer that worked for me: https://stackoverflow.com/a/77431685/10650942
I'm on M1 Mac using MacOS Sonoma 14.1 and Docker Desktop 4.25.0.
Summary:
docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh
sysctl -w vm.max_map_count=262144
Here is my docker-compose.yml
docker-compose up
If I don't include ELASTICSEARCH_MAX_MAP_COUNT=262144, then I got the following