我想运行docker图像:docker.slastic.co/kibana/kibana:6.2.4
用于运行的命令:
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
但是,它无法运行并给出以下预期:
{"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.
在elasticsearch容器中禁用xpack,并使用-e标志禁用xpack。
docker inspect elastic
给予
"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"
],
在没有xpack环境变量的情况下运行kibana也不起作用:
docker run -d --name kibana --restart always -p 5601:5601 docker.elastic.co/kibana/kibana:6.2.4
我该怎么解决这个问题?