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
本文来自博客园,作者:blog-elvin-vip,转载请注明原文链接:https://www.cnblogs.com/elvi/p/8664941.html