title: ElasticSearch with Docker - Enable Anonymous Access
body: <p>For local development, I want to run an ElasticSearch (5.5.2) container using Docker, but I don't want to have to deal with authentication.</p>
  
  <p>I have read <a href="https://www.elastic.co/guide/en/x-pack/5.5/anonymous-access.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/x-pack/5.5/anonymous-access.html</a>, and it seems that the container comes with X-Pack which adds security (requiring a username and password).</p>
  
  <p>Previously I have been running:</p>
  
  <pre><code>docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" --name es docker.elastic.co/elasticsearch/elasticsearch:5.5.
  </code></pre>
  
  <p>How can I allow anonymous access?</p>