Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

vm.max_map_count [65530] is too low in Docker-Windows. #92

Closed
jlruizmlg opened this issue Jul 26, 2017 · 6 comments
Closed

vm.max_map_count [65530] is too low in Docker-Windows. #92

jlruizmlg opened this issue Jul 26, 2017 · 6 comments

Comments

@jlruizmlg
Copy link

Hello all,

Im trying to run elasticsearch 5.5.0 in windows with docker, but i'm having a issue:

elasticsearch_1  | ERROR: bootstrap checks failed
elasticsearch_1  | max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Any option to avoid this error and let elasticsearch run normally?

Thanks!!

@jlruizmlg
Copy link
Author

Hi guys, i will answer myself:

docker-machine ssh
sudo sysctl -w vm.max_map_count=262144
exit

Thanks!

@dliappis
Copy link
Contributor

Thanks @jlruizmlg ; this is needed when using docker-machine for Windows as opposed to Docker for Windows. Some clarifications between those two in https://forums.docker.com/t/how-can-i-ssh-into-the-betas-mobylinuxvm/10991/8.

I took a note to update the docs to mention OSX+Windows with Docker Toolbox instead of just OSX with Docker Toolbox where this procedure is explained.

@khusseini
Copy link

khusseini commented Aug 17, 2017

I'm getting this error for Linux Mint 18 and image tag 5.5.1
but the above fix sudo sysctl -w vm.max_map_count=262144 worked for me as well

@dliappis
Copy link
Contributor

@khusseini If you are not running elasticsearch in the dev mode you'll need to set the vm_max_map_count as documented in the important note in the installation docs.

@khusseini
Copy link

@dliappis, ah alrighty, I skimmed the page a bit too fast

@dliappis
Copy link
Contributor

No worries @khusseini 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants