Need guidance on storing all the indexes at custom location #343
-
Hello everyone, I am running elasrticknn on my ubuntu server with following things (1) creating a Dockerfile (2) running following command to build the image (3) finally running following comand to start the docker It works smooth until I restart the server. I hope I am clear on the issue, but feel free to ask anything. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey Raj, I recommend reading these docs: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-compose-file You basically need to mount a volume at |
Beta Was this translation helpful? Give feedback.
-
Hello Alexklibisz,
I hope you are doing well.
I highly appreciate your help in this matter. I think I got the error, I
was using different location than
/usr/share/elasticsearch/data
I think using this will solve the problem, I am optimistic for this.
Again thank you very much for this prompt response.
Regards,
Raj Kapadia
…On Fri, Feb 4, 2022, 7:29 PM Alex Klibisz ***@***.***> wrote:
Hey Raj, I recommend reading these docs:
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-compose-file
You basically need to mount a volume at /usr/share/elasticsearch/data in
order to persist data. The example docker-compose file does this in its
volumes sections. I'm not sure what the corresponding docker command is.
I would google something like "docker command to mount a volume"
—
Reply to this email directly, view it on GitHub
<#343 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI2YTD3NL5JE5FQYV5TBMPTUZPLSHANCNFSM5NRVQOWA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hey Raj, I recommend reading these docs: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-compose-file
You basically need to mount a volume at
/usr/share/elasticsearch/data
in order to persist data. The example docker-compose file does this in itsvolumes
sections. I'm not sure what the corresponding docker command is. I would google something like "docker command to mount a volume"