title: How to use the official docker elasticsearch container?
body: <p>I have the following Dockerfile:</p>
  
  <pre><code>FROM docker.elastic.co/elasticsearch/elasticsearch:5.4.0
  RUN elasticsearch
  EXPOSE 80
  </code></pre>
  
  <p>I think the 3rd line is never reached.</p>
  
  <p>When I try to access the dockercontainer from my local machine through: 
  172.17.0.2:9300</p>
  
  <p>I get nothing, what am I missing? I want to access elasticsearch from the local host machine.</p>