10

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.

Mohamed Ali
  • 702
  • 8
  • 29

2 Answers2

11

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!

Mohamed Ali
  • 702
  • 8
  • 29
0

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

Ricardo
  • 3,696
  • 5
  • 36
  • 50