Elasticsearch abortion in docker for MacOS

I'm running ealsticsearch 7.0.0 in docker. But the elasticsearch container always terminates just after I start it.
I've configured docker as what official reference said.
$ screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
sysctl -w vm.max_map_count=262144
And an error is still logged out:

[1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

So where can I confirm that the vm.max_map_count setting is configured correctly? Or maybe because of other reasons?

Thanks in advance!

The message isn't related to vm.max_map_count.

Please read https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html

thanks a lot. I've started container with docker-compose.yml I configured and it worked.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.