Mohamed Ali
Mohamed Ali

Reputation: 782

where is my elasticsearch.yml in my docker image

I have a docker container that's running elasticsearch v6.0. I want to modify my elasticsearch.yml so that I can set the path.repos so I can add a directory to use for my snapshot and restore that I want to do my index before I make changes to it. I don't see the elasticsearch.yml in my docker container and not able to find it. Can someone point me to where I can find it? If it's not on the container itself, what steps can I take to add one to the container so that I can snapshot and restore my index? Thanks.

Upvotes: 11

Views: 16135

Answers (2)

Ricardo
Ricardo

Reputation: 4308

On my Ubuntu docker container using Elasticsearch v7.10, the location is

  • Configs: /etc/elasticsearch/elasticsearch.yml
  • Executable: /usr/share/elasticsearch/bin
  • Logs: /var/log/elasticsearch
  • Data: /var/lib/elasticsearch
  • Start service: service elasticsearch start

See more at Configuring Elasticsearch

Upvotes: 1

Mohamed Ali
Mohamed Ali

Reputation: 782

Thanks to @Lupanoide I was able to find where the elasticsearch.yml file is on my container. It is located in the /usr/share/elasticsearch/config. Thank you @Lupanoide for your answer. You can also see his comment above!

Upvotes: 18

Related Questions