docker安装elasticsearch
1、使用docker拉取elasticsearch镜像
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.13.3
2、启动容器
docker network create elastic
docker run -d --name es --net elastic -p 9200:9200 -p 9300:9300 -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.13.3