I am installing the elastic search in my MAC laptop running Ubuntu 16.04. ES version I am trying to install is 5.6.10.
Docker version 18.09.2, build 6247962
I have mounted my hostpath to container ES path for elasticsearch.yml.
docker run -d -p 9200:9200 -p 9300:9300 -v /Users/test/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml docker.elastic.co/elasticsearch/elasticsearch:5.6.10 /Users/test/elasticsearch/bin
The container got created successfully and I could see the container in docker ps -a output. But it gives the below error and also i cannot start the ES container.
docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: "/Users/test/elasticsearch/bin": stat /Users/test/elasticsearch/bin: no such file or directory": unknown
Can anyone help me in this regard?