安装elasticsearch
http://47.103.99.108:9200/
默认账号:elastic
默认密码:changeme
搜索镜像
docker search elasticsearch
拉取镜像
docker pull docker.elastic.co/elasticsearch/elasticsearch:5.6.16
查看镜像
docker images elasticsearch
运行镜像
docker run --name myelasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:5.6.16
复制配置
docker cp myelasticsearch:/usr/share/elasticsearch/config/elasticsearch.yml ~/elasticsearch/conf/elasticsearch.yml
添加以下配置(head插件配置)
http.cors.enabled: true
http.cors.allow-origin: "*