I am using kibana-docker 6.2.2 to connect to Elastic-docker 6.2.2 using http and xpack settings disabled.
I am running into this error even though xpack settings are disabled for both sides.
Aprreciate help in this regard.
+       docker run --name kibana \
+       -e ELASTICSEARCH_URL=http://localhost:9200 \
+       -e ELASTICSEARCH_USERNAME=elastic \
+       -e ELASTICSEARCH_PASSWD=changeme \
+       -e xpack.security.enabled=false \
+       -e xpack.graph.enable=false \
+       -e xpack.watcher.enabled=false \
+       -e xpack.ml.enabled=false \
+       -e xpack.monitoring.enabled=false \
+       -e xpack.monitoring.ui.container.elasticsearch.enabled \
+       -p 127.0.0.1:5601:5601 -d docker.elastic.co/kibana/kibana:6.2.2
{"type":"log","@timestamp":"2018-03-14T15:31:34Z","tags":["warning","elasticsearch","data"],"pid":1,"message":"No living connections"}
{"type":"log","@timestamp":"2018-03-14T15:31:34Z","tags":**["license","warning","xpack"],"pid":1,"message":"License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Error: No Living connections"}**
**{"type":"log","@timestamp":"2018-03-14T15:31:35Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"Unable to revive connection: http://localhost:9200/"}**
{"type":"log","@timestamp":"2018-03-14T15:31:35Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"No living connections"}
Elastic settings are as follows..
MacBook-Pro[sw] $ docker exec -it test-elasticsearch env
PATH=/usr/share/elasticsearch/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=045a2e06f692
TERM=xterm
xpack.ml.enabled=false
ES_JAVA_OPTS=-Xms512m -Xmx512m
cluster.name=test-elasticcluster
xpack.security.enabled=false
xpack.monitoring.enabled=false
xpack.graph.enabled=false
xpack.watcher.enabled=false
ELASTIC_CONTAINER=true
JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk
HOME=/root
MacBook-Pro[sw] $ curl localhost:9200/
{
  "name" : "aJL1I33",
  "cluster_name" : "test-elasticcluster",
  "cluster_uuid" : "8qWcj3MfQWqwK3dgzMZXVA",
  "version" : {
    "number" : "6.2.2",
    "build_hash" : "10b1edd",
    "build_date" : "2018-02-16T19:01:30.685723Z",
    "build_snapshot" : false,
    "lucene_version" : "7.2.1",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}
MacBook-Pro[sw] $ curl localhost:9200/_xpack/license
{
  "license" : {
    "status" : "active",
    "uid" : "37627fbf-aa20-4a9e-8089-1a6c87eda27d",
    "type" : "basic",
    "issue_date" : "2018-03-14T04:05:55.500Z",
    "issue_date_in_millis" : 1521000355500,
    "expiry_date" : "2018-04-13T04:05:55.500Z",
    "expiry_date_in_millis" : 1523592355500,
    "max_nodes" : 1000,
    "issued_to" : "test-elasticcluster",
    "issuer" : "elasticsearch",
    "start_date_in_millis" : -1
  }
}
MacBook-Pro[sw] $ curl localhost:9200/_xpack?pretty
{
  "build" : {
    "hash" : "ed9924c",
    "date" : "2018-02-16T20:07:13.199081Z"
  },
  "license" : {
    "uid" : "37627fbf-aa20-4a9e-8089-1a6c87eda27d",
    "type" : "basic",
    "mode" : "basic",
    "status" : "active",
    "expiry_date_in_millis" : 1523592355500
  },
  "features" : {
    "graph" : {
      "description" : "Graph Data Exploration for the Elastic Stack",
      "available" : false,
      "enabled" : false
    },
    "logstash" : {
      "description" : "Logstash management component for X-Pack",
      "available" : false,
      "enabled" : true
    },
    "ml" : {
      "description" : "Machine Learning for the Elastic Stack",
      "available" : false,
      "enabled" : false,
      "native_code_info" : {
        "version" : "N/A",
        "build_hash" : "N/A"
      }
    },
    "monitoring" : {
      "description" : "Monitoring for the Elastic Stack",
      "available" : true,
      "enabled" : false
    },
    "security" : {
      "description" : "Security for the Elastic Stack",
      "available" : false,
      "enabled" : false
    },
    "watcher" : {
      "description" : "Alerting, Notification and Automation for the Elastic Stack",
      "available" : false,
      "enabled" : false
    }
  },
  "tagline" : "You know, for X"
}