title: Docker - ELK - vm.max_map_count
body: <p>I'm trying to use the docker's image <strong>elk-docker</strong> (<a href="https://elk-docker.readthedocs.io/" rel="noreferrer">https://elk-docker.readthedocs.io/</a>) , using Docker Compose. The .yml file, is like this:</p>
  
  <pre><code>elk:
  image: sebp/elk
  ports:
    - "5601:5601"
    - "9200:9200"
    - "5044:5044"
  </code></pre>
  
  <p>When I run the command: sudo docker-compose up, the console shows:</p>
  
  <pre><code>* Starting Elasticsearch Server
  sysctl: setting key "vm.max_map_count": Read-only file system
  ...fail!
  waiting for Elasticsearch to be up (1/30)
  waiting for Elasticsearch to be up (2/30)
  waiting for Elasticsearch to be up (3/30)
  waiting for Elasticsearch to be up (4/30)
  waiting for Elasticsearch to be up (5/30)
  waiting for Elasticsearch to be up (6/30)
  waiting for Elasticsearch to be up (7/30)
  waiting for Elasticsearch to be up (8/30)
  waiting for Elasticsearch to be up (9/30)
  waiting for Elasticsearch to be up (10/30)
  waiting for Elasticsearch to be up (11/30)
  waiting for Elasticsearch to be up (12/30)
  waiting for Elasticsearch to be up (13/30)
  waiting for Elasticsearch to be up (14/30)
  waiting for Elasticsearch to be up (15/30)
  waiting for Elasticsearch to be up (16/30)
  waiting for Elasticsearch to be up (17/30)
  waiting for Elasticsearch to be up (18/30)
  waiting for Elasticsearch to be up (19/30)
  waiting for Elasticsearch to be up (20/30)
  waiting for Elasticsearch to be up (21/30)
  waiting for Elasticsearch to be up (22/30)
  waiting for Elasticsearch to be up (23/30)
  waiting for Elasticsearch to be up (24/30)
  waiting for Elasticsearch to be up (25/30)
  waiting for Elasticsearch to be up (26/30)
  waiting for Elasticsearch to be up (27/30)
  waiting for Elasticsearch to be up (28/30)
  waiting for Elasticsearch to be up (29/30)
  waiting for Elasticsearch to be up (30/30)
  Couln't start Elasticsearch. Exiting.
  Elasticsearch log follows below.
  cat: /var/log/elasticsearch/elasticsearch.log: No such file or directory
  docker_elk_1 exited with code 1
  </code></pre>
  
  <p>How can I resolve the problem?</p>