docker安裝elasticsearch

大黄喵吖發表於2024-08-19

docker run -d \
> --name es \
> -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" \
> -e "discovery.type=single-node" \
> -v es-data:/usr/share/elasticsearch/data \
> -v es-plugins:/usr/share/elasticsearch/plugins \
> --privileged \
> --network es-net \
> -p 9200:9200 \
> -p 9300:9300 \
> elasticsearch:7.3.1
d11c834fad4c4b3331c3c32c54000b8fa5fc265af1db1c28642dabec48d52b87

相關文章