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