The host machine needs to have the
docker
service installed.
- Use the
kibana:7.10.1
image.
- Mount the main configuration file.
- Modify the parameters according to the actual situation.
docker run -d --restart=always --name kibana \
-p 5601:5601 \
-v "/data/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml" \
kibana:7.10.1
Server Directory Configuration Information#
Directory Information##
# tree /data/kibana/
/data/kibana/
└── kibana.yml
# mkdir /data/kibana/ -pv
# chown 1000 -R /data/kibana/
Configuration Information##
# vim /data/kibana/kibana.yml
#
# ** THIS IS AN AUTO-GENERATED FILE **
#
# Default Kibana configuration for docker target
server.name: kibana
server.host: "0.0.0.0"
server.port: 5601
elasticsearch.hosts: [ "http://ES_IP:9200" ]
elasticsearch.requestTimeout: 60000
monitoring.ui.container.elasticsearch.enabled: true
kibana.index: ".kibana"
i18n.locale: "zh-CN"
elasticsearch.username: "es_username"
elasticsearch.password: "es_password"
xpack.reporting.encryptionKey: "a_random_string"
xpack.security.encryptionKey: "something_at_least_32_characters"
Execute the Docker Command to Start the Container##
- Modify the parameters according to the actual situation.
docker run -d --restart=always --name kibana \
-p 5601:5601 \
-v "/data/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml" \
kibana:7.10.1