# Snapshot is deleted automatically once I stop the docker container

**URL:** <https://discuss.elastic.co/t/snapshot-is-deleted-automatically-once-i-stop-the-docker-container/352603>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [February 6, 2024, 7:58am UTC](https://discuss.elastic.co/t/snapshot-is-deleted-automatically-once-i-stop-the-docker-container/352603 "2024-02-06T07:58:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![susnato](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susnato/32/131018_2.png) [@susnato](https://discuss.elastic.co/u/susnato)\
**Post date:** [February 6, 2024, 7:58am UTC](https://discuss.elastic.co/t/snapshot-is-deleted-automatically-once-i-stop-the-docker-container/352603/1 "2024-02-06T07:58:28Z")

</div>

(Hi, I am totally new to Elastic search, so sorry if this is very basic question.)

I had an Elasticsearch store running in background using docker.

 ![snp2](https://us1.discourse-cdn.com/elastic/original/3X/0/b/0b9d329b852a929ce320996757d63612385b890e.jpeg)

I had used haystack to add some files and embeddings to it.  
Then I created a snapshot of it and it was successful. But when I stopped the docker container and resumed it later, the snapshot was all gone!

Here was the response when I created the snapshot -

 ![snapshot](https://us1.discourse-cdn.com/elastic/original/3X/0/8/080ad908dbcb5497077ef3fb7c90a12f4b5a6fd0.jpeg)

Here was the response when I tried to check snapshot status(before stopping the container) -

 ![snapshot copy](https://us1.discourse-cdn.com/elastic/original/3X/f/c/fc78190e0dbe25e893e9e96baa42d9130d084aff.jpeg)

But then I stopped the container and resumed it and tried to check the snapshot and it was removed!

 ![snp](https://us1.discourse-cdn.com/elastic/original/3X/5/d/5d0a99ce345c465debeb706cdeebd88321a5231b.jpeg)

Did I make any error while creating the snapshot? How do I fix this? Please let me know.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 6, 2024, 9:01am UTC](https://discuss.elastic.co/t/snapshot-is-deleted-automatically-once-i-stop-the-docker-container/352603/2 "2024-02-06T09:01:33Z")

</div>

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with `</>` icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

---

<div class="post-metadata">

**Author:** ![susnato](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susnato/32/131018_2.png) [@susnato](https://discuss.elastic.co/u/susnato)\
**Post date:** [February 6, 2024, 2:43pm UTC](https://discuss.elastic.co/t/snapshot-is-deleted-automatically-once-i-stop-the-docker-container/352603/3 "2024-02-06T14:43:37Z")

</div>

Hi @dadoonet , thanks for the reply, I would update the post but I don't see a edit option in the post now. I also clicked on the "..." button just on the bottom right of the post but don't see any option to edit this.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 6, 2024, 4:02pm UTC](https://discuss.elastic.co/t/snapshot-is-deleted-automatically-once-i-stop-the-docker-container/352603/4 "2024-02-06T16:02:42Z")

</div>

Could you see the pencil button after having pressed on the 3 dots?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/8/d823b71e341573768d720497e9c2928b7e225833.png)

---

<div class="post-metadata">

**Author:** ![susnato](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susnato/32/131018_2.png) [@susnato](https://discuss.elastic.co/u/susnato)\
**Post date:** [February 6, 2024, 5:30pm UTC](https://discuss.elastic.co/t/snapshot-is-deleted-automatically-once-i-stop-the-docker-container/352603/5 "2024-02-06T17:30:32Z")

</div>

Hi, @dadoonet, no I can't see any pencil button after having pressed on the 3 dots. It was there just after I posted the question but now it's gone.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 5, 2024, 5:30pm UTC](https://discuss.elastic.co/t/snapshot-is-deleted-automatically-once-i-stop-the-docker-container/352603/6 "2024-03-05T17:30:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
