docker search elasticsearch
docker pull elasticsearch //下载的是最新版本 5.6.11
docker images
docker run -d -p 9200:9200 -p 9300:9300 —name elasticsearch elasticsearch
docker pull docker pull mobz/elasticsearch-head:5 // head 也需要安装5的版本
docker run -d -p 9200:9200 -p 9300:9300 -v /Users/hwj/Documents/docker/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml --name elasticsearch elasticsearch