Thanks for reply,
I made these changes.
chmod to 777, chown to 1000.1000
now my file looks like:
-rwxrwxrwx 1 1000 1000 1902 Jan 11 16:44 logstash.conf
I tried to run:
docker run --name data-prepper -p 4900:4900 -v /etc/opensearch/dataprepper/logstash.conf:/usr/share/data-prepper/pipelines.conf opensearchproject/data-prepper:2.0.1 pipelines.conf
But go to an error:
Error: runc: runc create failed: unable to start container process: exec: "pipelines.conf": executable file not found in $PATH: OCI runtime attempted to invoke a command that was not found
Looks like I miss some exec file in $PATH which is /usr/share/data-prepper/ I think. But I pulled latest version and didnt make any changes to build.