title: Kibana docker image fails to start due to xpack security error
body: <p>I am trying to run the docker image : docker.elastic.co/kibana/kibana:6.2.4</p>
  
  <p>Command used to run :</p>
  
  <pre><code>docker run -d -e "xpack.monitoring.enabled=false" -e "xpack.monitoring.ui.container.elasticsearch.enabled=false" --name kibana --restart always -p 5601:5601 docker.elastic.co/kibana/kibana:6.2.4
  </code></pre>
  
  <p>However, it fails to run and gives the following expection :</p>
  
  <pre><code>{"type":"log","@timestamp":"2018-09-28T08:04:05Z","tags":["fatal"],"pid":8,"message":"\"xpack.monitoring.ui.container.elasticsearch.enabled\" setting was not applied. Check for spelling errors and ensure that expected plugins are installed and enabled."}
  FATAL "xpack.monitoring.ui.container.elasticsearch.enabled" setting was not applied. Check for spelling errors and ensure that expected plugins are installed and enabled.
  </code></pre>
  
  <p>xpack is disabled in elasticsearch container as well using the -e flag to disable xpack.   </p>
  
  <pre><code>docker inspect elastic 
  </code></pre>
  
  <p>gives</p>
  
  <pre><code> "StdinOnce": false,
              "Env": [
                  "xpack.security.enabled=false",
                  "PATH=/usr/share/elasticsearch/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                  "ELASTIC_CONTAINER=true",
                  "JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk"
              ],
  </code></pre>
  
  <p>Running kibana without xpack environment variables also doesnt work: </p>
  
  <pre><code>docker run -d --name kibana --restart always -p 5601:5601 docker.elastic.co/kibana/kibana:6.2.4
  </code></pre>
  
  <p>How do I fix this?</p>