Docker安装ES
原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/11754705.html
拉取镜像
1 docker pull elasticsearch:7.4.1
创建用户自定义网络
1 docker network create hahanetwork
运行ES
1 docker run --name elasticsearch --net hahanetwork -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -d elasticsearch:7.4.1
需要挂载volume的使用如下脚本
docker run --name elasticsearch --net hahanetwork -p 9200:9200 -p 9300:9300 --privileged=true -e "discovery.type=single-node" -v D:/app/es/plugins:/usr/share/elasticsearch/plugins -v D:/app/es/data:/usr/share/elasticsearch/data -v D:/app/es/logs:/usr/share/elasticsearch/logs -v D:/app/es/config:/usr/share/elasticsearch/config -d elasticsearch:7.4.1
Reference
https://hub.docker.com/_/elasticsearch
https://www.elastic.co/downloads/elasticsearch
强者自救 圣者渡人