docker run -d \
--name es \
--user elasticsearch \
--restart always \
-p 9200:9200 \
-p 9300:9300 \
-e path.data=/usr/share/elasticsearch/data \
-e node.name=es \
-e discovery.seed_hosts=127.0.0.1 \
-e network.host=0.0.0.0 \
-e http.port=9200 \
-e transport.port=9300 \
-e ES_JAVA_OPTS="-Xms1g -Xmx1g" \
-e discovery.type="single-node" \
-e xpack.security.enabled="true" \
-e xpack.security.authc.api_key.enabled="true" \
-e http.cors.enabled="true" \
-e http.cors.allow-origin="/.*/" \
-e http.cors.allow-headers="X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization" \
-e http.cors.allow-credentials="true" \
-e xpack.security.enabled="false" \
hehety/elasticsearch:8.2.3
Content type
Image
Digest
Size
556.3 MB
Last updated
about 4 years ago
docker pull hehety/elasticsearch:8.2.3