davidkorea / ElasticSearch_study

0 stars 0 forks source link

max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] #1

Open davidkorea opened 4 years ago

davidkorea commented 4 years ago

Issue

  1. docker-compose up with docker-compose.yaml file
  2. but when docker ps find no elaticsearch container, only kibana and cerebro
  3. exec docker ps -a find elasticsearch conbtainer is EXITED status
    [root@localhost ~]# docker ps -a
    CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS                       PORTS                    NAMES
    6826362e507e        docker.elastic.co/elasticsearch/elasticsearch:7.1.0   "/usr/local/bin/dock…"   11 minutes ago      Exited (78) 10 minutes ago                            es7_02
    e35bb96c6da7        docker.elastic.co/elasticsearch/elasticsearch:7.1.0   "/usr/local/bin/dock…"   11 minutes ago      Exited (78) 10 minutes ago                            es7_01
    e557763bd936        lmenezes/cerebro:0.8.3                                "/opt/cerebro/bin/ce…"   11 minutes ago      Up 11 minutes                0.0.0.0:9000->9000/tcp   cerebro
    c9a24cc182ef        docker.elastic.co/kibana/kibana:7.1.0                 "/usr/local/bin/kiba…"   11 minutes ago      Up 11 minutes                0.0.0.0:5601->5601/tcp   kibana7
  4. check EXITED containber logs by docker logs 6826362e507e, find that:
    ERROR: [1] bootstrap checks failed
    [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

[Resolution]

davidkorea commented 4 years ago
yong@MacBookPro ~ % docker-compose down -v
ERROR: 
        Can't find a suitable configuration file in this directory or any
        parent. Are you in the right directory?

        Supported filenames: docker-compose.yml, docker-compose.yaml

To cancel docker compose need to exec command docker-compose down -v at the path where the docker-compose.yaml file exists.

yong@MacBookPro ~ % cd elasticsearch 
yong@MacBookPro elasticsearch % docker-compose down -v
Stopping kibana7 ... done
Stopping es7_01  ... done
Stopping cerebro ... done
Removing kibana7 ... done
Removing es7_02  ... done
Removing es7_01  ... done
Removing cerebro ... done
Removing network elasticsearch_es7net
Removing volume elasticsearch_es7data1
Removing volume elasticsearch_es7data2