title: ElasticSearch in Windows docker image vm max map count
body: <p>I am new to Docker and Elasticsearch.
  I am using a Windows 7 machine. I am using <code>docker-compose up</code> to bring up the docker container. My yml file has</p>
  
  <pre><code>elasticsearch:
    image: elasticsearch:5.1.1
    environment:
      ES_JAVA_OPTS: "-Xms1g -Xmx1g"
  </code></pre>
  
  <p>along with other linked images.<br>
  I am using docker to bring up the elasticsearch image and when I do so I get the following error</p>
  
  <pre><code>[36melasticsearch_1   |←[0m ERROR: bootstrap checks failed
  [36melasticsearch_1   |←[0m max virtual memory areas vm.max_map_count [65530]  is too low, increase to at least [262144]
  [36melasticsearch_1   |←[0m [2017-02-08T11:06:51,752][INFO ][o.e.n.Node
  </code></pre>
  
  <p>I googled for a solution and everywhere they suggest to use 
  <code>sudo sysctl vm.max_map_count=262144</code>, but in Windows <code>sysctl</code> is not available. No clear steps are given for Windows.</p>
  
  <p>Some other Docker images are up and running on my machine so Docker is working.</p>
  
  <p>Can someone give any clues to solve this issue?</p>