docker环境 快速使用elasticsearch-head插件
#elasticsearch配置
进入elk容器
docker exec -it elk /bin/bash
head插件访问配置
echo '#head插件访问#
http.cors.enabled: true
http.cors.allow-origin: "*"
'>>/etc/elasticsearch/elasticsearch.yml
#重启elasticsearch
service elasticsearch restart
#退出exit Ctrl+D
#Browser to access IP: 9100
# ElasticSearch Head
docker run elasticsearch-head
#pull
docker pull alivv/elasticsearch-head
#run
docker run --name es-head -p 9100:9100 -dit alivv/elasticsearch-head
docker ps -l
# make image
#downloud elasticsearch-head
git clone git://github.com/mobz/elasticsearch-head.git
#make docker iamge
cd elasticsearch-head
docker build -t elasticsearch-head -f Dockerfile-alpine .