# Elasticsearch - Bootstrap checks failing

**URL:** <https://discuss.elastic.co/t/elasticsearch-bootstrap-checks-failing/302442>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [April 14, 2022, 2:12pm UTC](https://discuss.elastic.co/t/elasticsearch-bootstrap-checks-failing/302442 "2022-04-14T14:12:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![The-morpho](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@The-morpho](https://discuss.elastic.co/u/The-morpho)\
**Post date:** [April 14, 2022, 2:12pm UTC](https://discuss.elastic.co/t/elasticsearch-bootstrap-checks-failing/302442/1 "2022-04-14T14:12:02Z")

</div>

Hello i want to install elk on docker, so i followed the official documentation [Install Elasticsearch with Docker | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html)

So when i want to start Elasticsearch in Docker to get the password generated for the `elastic` user and the enrollment token for enrolling Kibana but typing this command

`docker run --name es01 --net elastic -p 9200:9200 -p 9300:9300 -it docker.elastic.co/elasticsearch/elasticsearch:8.1.2`

I get this error:

ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.  
bootstrap check failure [1] of [1]: max virtual memory areas vm.max\_map\_count [65530] is too low, increase to at least [262144]  
ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/Elasticsearch/logs/docker-cluster.log  
{"@timestamp":"2022-04-14T12:39:58.449Z", "log.level": "INFO", "message":"stopping ...", "ecs.version": "1.2.0","service.name":"ES\_ECS","event.dataset":"Elasticsearch.server","process.thread.name":"Thread-2","log.logger":"org.Elasticsearch.node.Node","Elasticsearch.node.name":"50af9edc5c7d","Elasticsearch.cluster.name":"docker-cluster"}  
{"@timestamp":"2022-04-14T12:39:58.512Z", "log.level": "INFO", "message":"stopped", "ecs.version": "1.2.0","service.name":"ES\_ECS","event.dataset":"Elasticsearch.server","process.thread.name":"Thread-2","log.logger":"org.Elasticsearch.node.Node","Elasticsearch.node.name":"50af9edc5c7d","Elasticsearch.cluster.name":"docker-cluster"}  
{"@timestamp":"2022-04-14T12:39:58.513Z", "log.level": "INFO", "message":"closing ...", "ecs.version": "1.2.0","service.name":"ES\_ECS","event.dataset":"Elasticsearch.server","process.thread.name":"Thread-2","log.logger":"org.Elasticsearch.node.Node","Elasticsearch.node.name":"50af9edc5c7d","Elasticsearch.cluster.name":"docker-cluster"}  
{"@timestamp":"2022-04-14T12:39:58.531Z", "log.level": "INFO", "message":"closed", "ecs.version": "1.2.0","service.name":"ES\_ECS","event.dataset":"Elasticsearch.server","process.thread.name":"Thread-2","log.logger":"org.Elasticsearch.node.Node","Elasticsearch.node.name":"50af9edc5c7d","Elasticsearch.cluster.name":"docker-cluster"}  
{"@timestamp":"2022-04-14T12:39:58.535Z", "log.level": "INFO", "message":"Native controller process has stopped - no new native processes can be started", "ecs.version": "1.2.0","service.name":"ES\_ECS","event.dataset":"Elasticsearch.server","process.thread.name":"ml-cpp-log-tail-thread","log.logger":"org.Elasticsearch.xpack.ml.process.NativeController","Elasticsearch.node.name":"50af9edc5c7d","Elasticsearch.cluster.name":"docker-cluster"}

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 14, 2022, 2:40pm UTC](https://discuss.elastic.co/t/elasticsearch-bootstrap-checks-failing/302442/2 "2022-04-14T14:40:46Z")

</div>

Hey,

maybe this part of the documentation helps: [Install Elasticsearch with Docker | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_set_vm_max_map_count_to_at_least_262144)

---

<div class="post-metadata">

**Author:** ![The-morpho](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@The-morpho](https://discuss.elastic.co/u/The-morpho)\
**Post date:** [April 18, 2022, 1:28pm UTC](https://discuss.elastic.co/t/elasticsearch-bootstrap-checks-failing/302442/4 "2022-04-18T13:28:53Z")

</div>

Thanks a lot @spinscale

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 16, 2022, 1:29pm UTC](https://discuss.elastic.co/t/elasticsearch-bootstrap-checks-failing/302442/5 "2022-05-16T13:29:16Z")

</div>

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