docker pull elasticsearch:6.8.0
docker network create dnw_es_680
docker run -d --name es_680 --net dnw_es_680 -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:6.8.0
http://192.168.99.100:9200/
docker pull mobz/elasticsearch-head:5
docker run -d --name es_admin -p 9100:9100 mobz/elasticsearch-head:5
docker exec -it es_680 /bin/bash vi config/elasticsearch.yml 添加: http.cors.enabled: true http.cors.allow-origin: "*" 重啓容器: docker restart es_680
http://192.168.99.100:9100/