# Elasticsearch vm.max\_map\_count error in docker image on MacOS 14

**URL:** https://discuss.elastic.co/t/elasticsearch-vm-max-map-count-error-in-docker-image-on-macos-14/346285
**Category:** Elasticsearch
**Tags:** docker
**Created:** [November 2, 2023, 11:46am UTC](https://discuss.elastic.co/t/elasticsearch-vm-max-map-count-error-in-docker-image-on-macos-14/346285 "2023-11-02T11:46:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![timofeyp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timofeyp/32/104572_2.png) [@timofeyp](https://discuss.elastic.co/u/timofeyp)
#### Post date: [November 2, 2023, 11:46am UTC](https://discuss.elastic.co/t/elasticsearch-vm-max-map-count-error-in-docker-image-on-macos-14/346285/1 "2023-11-02T11:46:49Z")

</div>

Hello!  
I have the "vm.max\_map\_count [65530] is too low, increase to at least [262144]" error while elastic container starting on Docker 4.25, MacOS 14 and ARM core.

Here is my container props:

```auto
    image: elasticsearch:8.9.0
    container_name: elasticsearch
    hostname: elastic
    environment:
      - node.name=elasticsearch
      - cluster.name=es-docker-cluster
      - cluster.initial_master_nodes=elasticsearch
      - bootstrap.memory_lock=true
      - 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - es-data:/usr/share/elasticsearch/data
    ports:
      - ${DC_ELASTIC_HOST_PORT}:${DC_ELASTIC_PORT}

```

I've tried the steps described here: [Install Elasticsearch with Docker | Elasticsearch Guide [8.10] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_macos_with_docker_for_mac)  
But it does not helps.

command `docker-machine ssh` fails by `Error: No machine name(s) specified and no "default" machine exists` . Seems to vm machine must be created, but it requires VirtualBox that runs only on Intel core Macs.  
command `screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty` fails due to path not found.  
command `sudo sysctl -w vm.max_map_count=262144` fails by `sysctl: unknown oid 'vm.max_map_count'`error too.

May be somebody knows any another solution ?

---

<div class="post-metadata">

### Author: ![timofeyp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timofeyp/32/104572_2.png) [@timofeyp](https://discuss.elastic.co/u/timofeyp)
#### Post date: [November 2, 2023, 3:54pm UTC](https://discuss.elastic.co/t/elasticsearch-vm-max-map-count-error-in-docker-image-on-macos-14/346285/2 "2023-11-02T15:54:29Z")

</div>

[Here](https://forums.docker.com/t/how-to-enter-docker-vm-terminal-on-macos-14/138316) is solution

---

<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: [November 30, 2023, 3:54pm UTC](https://discuss.elastic.co/t/elasticsearch-vm-max-map-count-error-in-docker-image-on-macos-14/346285/3 "2023-11-30T15:54:47Z")

</div>

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