Dockerfile for elastic (unable to copy file)

i want to use elastic image such as elasticserhc, kibana and logstash. Do I need specify the CMD or COPY just sufficient? Can I use custom service name and image name or any format needed


ARG Version

FROM docker.elastic.co/elasticsearch/elasticsearch:$Version

COPY  ../configuration/elasticsearch.yml /usr/share/elasticsearch/configuration/

I just try this but it is not working. It not copy the file. Please advice if i did anything wrong?

can you share more error messages than 'is not working' in order to dig into the issue? Thank you!

1 Like