crate / docker-crate

Source repository for the official CrateDB Docker image
https://registry.hub.docker.com/_/crate/
Apache License 2.0
49 stars 22 forks source link

image does not start #209

Closed Marvin-TMG closed 2 years ago

Marvin-TMG commented 2 years ago

The image does not start, there is the following error:

ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] by adding `vm.max_map_count = 262144` to `/etc/sysctl.conf` or invoking `sysctl -w vm.max_map_count=262144`

Any ideas how to solve this?

I read that the following command can be ran before starting the image grep vm.max_map_count /etc/sysctl.conf vm.max_map_count=262144

amotl commented 2 years ago

Dear Marvin,

grep vm.max_map_count /etc/sysctl.conf vm.max_map_count=262144

This command would show you if the corresponding setting is present in your /etc/sysctl.conf file.

On the other hand, the command sysctl -w vm.max_map_count=262144 will invoke the setting ad hoc and activate it for subsequent commands.

In order to make it persistent / reboot-safe, you will have to add the setting to your /etc/sysctl.conf file, followed by invoking sysctl -p to activate the settings.

With kind regards, Andreas.

amotl commented 2 years ago

Hi again,

I hope you have been able to resolve the issue based on the information I shared with you.

203 just recently improved the documentation on this matter, about how to configure this system limit setting on the host system used within Docker Desktop. See ^1 for the full documentation section about _Configuring vm.max_map_count_.

Please reopen if you need more assistance on this topic.

With kind regards, Andreas.