Hi,
Trying to run elasticsearch inside a docker container but getting below error.
{"@timestamp":"2025-09-14T02:18:15.072Z", "log.level":"ERROR", "message":"node validation exception\n[2] bootstrap checks failed. You must address the points described in the following [2] lines before starting Elasticsearch. For more information see [Bootstrap checks | Elastic Docs]\nbootstrap check failure [1] of [2]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured; for more information see [Bootstrap checks | Elastic Docs]\nbootstrap check failure [2] of [2]: Transport SSL must be enabled if security is enabled. Please set [xpack.security.transport.ssl.enabled] to [true] or disable security by setting [xpack.security.enabled] to [false]; for more information see [Bootstrap checks | Elastic Docs]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.bootstrap.Elasticsearch","elasticsearch.node.name":"d05fa74a568d","elasticsearch.cluster.name":"docker-cluster"}
ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/docker-cluster.log
Based on this error, I tried to modify the .yml file, but still giving me the same error. Can someone please suggest ?
> cluster.name: "docker-cluster" > network.host: 3.6.91.243 > discovery.seed_hosts:- \["3.6.91.243", "\[::1\]"\] > > #----------------------- BEGIN SECURITY AUTO CONFIGURATION ----------------------- > > # > > # The following settings, TLS certificates, and keys have been automatically > > # generated to configure Elasticsearch security features on 14-09-2025 02:01:13 > > # > > # -------------------------------------------------------------------------------- > > # Enable security features > > xpack.security.enabled: false > > xpack.security.enrollment.enabled: false > > # Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents > > xpack.security.http.ssl: > enabled: false > keystore.path: certs/http.p12 > > # Enable encryption and mutual authentication between cluster nodes > > xpack.security.transport.ssl: > enabled: false > verification_mode: certificate > keystore.path: certs/transport.p12 > truststore.path: certs/transport.p12 > > # Create a new cluster with the current node only > > # Additional nodes can still join the cluster later > > cluster.initial_master_nodes: \["faf75573db03"\] > > #----------------------- END SECURITY AUTO CONFIGURATION -------------------------