docker环境 快速使用elasticsearch-head插件


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

本人制作的镜像上传到官网,测试正常使用
项目地址 https://hub.docker.com/r/alivv/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 .

the image size is 75.4MB , on 2018-3-28


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM