title: What is the default user and password for elasticsearch?
body: <p>I have <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html" rel="noreferrer">installed Elastic with Docker</a>:</p>
  <pre><code>docker run -p 9200:9200 \
             -p 9300:9300 \
             -e &quot;discovery.type=single-node&quot; \ 
             docker.elastic.co/elasticsearch/elasticsearch:5.6.2
  </code></pre>
  <p>But <code>curl localhost:9200</code> fails with an authentication error:</p>
  <pre><code>{
    &quot;error&quot;: {
      &quot;root_cause&quot;: [
        {
          &quot;type&quot;: &quot;security_exception&quot;,
          &quot;reason&quot;: &quot;missing authentication token for REST request [/]&quot;,
          &quot;header&quot;: {
            &quot;WWW-Authenticate&quot;: &quot;Basic realm=\&quot;security\&quot; charset=\&quot;UTF-8\&quot;&quot;
          }
        }
      ],
      &quot;type&quot;: &quot;security_exception&quot;,
      &quot;reason&quot;: &quot;missing authentication token for REST request [/]&quot;,
      &quot;header&quot;: {
        &quot;WWW-Authenticate&quot;: &quot;Basic realm=\&quot;security\&quot; charset=\&quot;UTF-8\&quot;&quot;
      }
    },
    &quot;status&quot;: 401
  }
  </code></pre>
  <p><strong>What is the default username/password combo for Elasticsearch?</strong></p>