sudo docker pull kibana:7.6.0
docker run --name kibana01 -d -p 5601:5601 -v /home/xujk/Work/Docker/elasticsearch/kibana/config/kibana.yml:/kibana/config/kibana.yml --network=mynetwork --ip 172.18.0.5 --link elasticsearch:es1 -e ELASTICSEARCH_HOSTS=http://172.18.0.4:9200 kibana:7.6.0
License information from the X-Pack plugin could not be obtained from Elasticsearch
参考解决url:https://blog.csdn.net/cominglately/article/details/99744523
分析:配置elasticsearch auth认证之后,发现kibana无法访问,没有配置kibana的认证用户
cd /home/xujk/Work/Docker/elasticsearch/es7.6.0/config
sudo gedit elasticsearch.yml
sudo docker exec -it es1 bash
bin/elasticsearch-setup-passwords interactive
curl -H "Content-Type:application/json" -XPOST -u elastic ‘http://172.18.0.4:9200/_xpack/security/user/elastic/_password‘ -d ‘{ "password" : "123456" }‘
原文:https://www.cnblogs.com/kunwn/p/14539257.html