1、拉取镜像
docker pull docker.elastic.co/elasticsearch/elasticsearch:6.3.2
2、运行镜像
docker run -d --name es -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -v /data/ElasticSearch:/usr/share/elasticsearch/data docker.elastic.co/elasticsearch/elasticsearch:6.3.2
3、查看状态
http://192.168.0.164:9100/
原文地址:https://www.cnblogs.com/raorao1994/p/10157220.html
时间: 2024-10-29 13:31:45