Docker - ELK - vm.max_map_count
In Docker host terminal (Docker CLI) run commands:
docker-machine ssh
sudo sysctl -w vm.max_map_count=262144
exit
You probably need to set vm.max_map_count
in /etc/sysctl.conf
on the host itself, so that Elasticsearch does not attempt to do that from inside the container. If you don't know the desired value, try doubling the current setting and keep going until Elasticsearch starts successfully. Documentation recommends at least 262144.
You can do that in 2 ways.
- Temporary set max_map_count:
- sudo sysctl -w vm.max_map_count=262144
but this will only last till you restart your system.
- sudo sysctl -w vm.max_map_count=262144
- Permament
- In your host machine
- vi /etc/sysctl.conf
- make entry vm.max_map_count=262144
- restart
- In your host machine