一、 docker pull docker.elastic.co/elasticsearch/elasticsearch:6.7.1
docker 安装elasticSearch6.7.1

二、执行 docker run -e ES_JAVA_OPTS="-Xms256m -Xmx256m" -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.7.1

docker 安装elasticSearch6.7.1