- PULL IMAGE
docker pull elasticsearch:7.7.0
- RUN
docker run -d --name es -p 9200:9200 -p 9300:9300 e ES_JAVA_OPTS="-Xms512m -Xmx512m" -e "discovery.type=single-node" elasticsearch
docker ps
- CONFIG
docker exec -it es /bin/bash
vi coinfig/elasticsearch.yml
cluster.name: "docker-elastic-104"
network.host: 0.0.0.0
node.name: node0
http.host: 0.0.0.0
http.cors.enabled: true
http.cors.allow-origin: "*"
- Others
Folder Mapping:
-v /dockerfile/elasticsearch/plugins:/usr/share/elasticsearch/plugins \
-v /dockerfile/elasticsearch/data:/usr/share/elasticsearch/data \
-v /dockerfile/elasticsearch/logs:/usr/share/elasticsearch/logs \
- Kibana
docker pull kibana:7.7.0
docker run --link es:elasticsearch -p 5601:5601 -d kibana:7.7.0
本文由 Ivan Dong 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Jul 7, 2023 at 08:13 am