I am using ES 5.6.10 and I want to add an entry to /etc/ hosts after the elasticsearch container is started and then restart the ES again. But I could not able to add any new entries to the /etc/hosts inside ES container
docker run -d -p 9200:9200 -p 9300:9300 -v /Users/test/Docker5610/elasticsearch.yml:/usr/share/elasticsearch/elasticsearch.yml <5.6 Image Docker location>
After exec to the docker container i cannot edit the /etc/hosts. I checked couple of posts but its not working. I tried with ES 7.0.0 also and container is getting restarted multiple times. I tried with --privileged option also but it did not work.
Where can I find the Docker files for the 5.6.10 ?
Can anybody help please as I am stuck now?