# How can I upgrade the ELK from 8.5.1 to 8.11.4 \[Docker\] without losing data?

**URL:** https://discuss.elastic.co/t/how-can-i-upgrade-the-elk-from-8-5-1-to-8-11-4-docker-without-losing-data/355045
**Category:** Elasticsearch
**Tags:** docker
**Created:** [March 8, 2024, 4:12pm UTC](https://discuss.elastic.co/t/how-can-i-upgrade-the-elk-from-8-5-1-to-8-11-4-docker-without-losing-data/355045 "2024-03-08T16:12:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![SamuelSMendes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samuelsmendes/32/104246_2.png) [@SamuelSMendes](https://discuss.elastic.co/u/SamuelSMendes)
#### Post date: [March 8, 2024, 4:12pm UTC](https://discuss.elastic.co/t/how-can-i-upgrade-the-elk-from-8-5-1-to-8-11-4-docker-without-losing-data/355045/1 "2024-03-08T16:12:26Z")

</div>

I have this cluster on premisse and would like to upgrade the version but as it is on Docker I'm not sure on how I could keep the older data into the newest version.

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [March 8, 2024, 4:23pm UTC](https://discuss.elastic.co/t/how-can-i-upgrade-the-elk-from-8-5-1-to-8-11-4-docker-without-losing-data/355045/2 "2024-03-08T16:23:33Z")

</div>

You have a cluster on docker on version 8.5.1 and want to upgrade to 8.11.4?

How are running it? Is everything on a docker compose or do you have multiple servers and in each one of them you are running Elasticsearch using docker? It is not clear how you are running it.

If you are using persistent volumes for your containers, than you should have no issue upgrading.

---

<div class="post-metadata">

### Author: ![SamuelSMendes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samuelsmendes/32/104246_2.png) [@SamuelSMendes](https://discuss.elastic.co/u/SamuelSMendes)
#### Post date: [March 15, 2024, 8:01pm UTC](https://discuss.elastic.co/t/how-can-i-upgrade-the-elk-from-8-5-1-to-8-11-4-docker-without-losing-data/355045/3 "2024-03-15T20:01:20Z")

</div>

Everything is in a docker-compose. I am not very familiar with the usage of containers and still trying things out, but I'll check on the persistent volumes that you've mentioned.

Thank you for the reply.

---

<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: [April 12, 2024, 8:01pm UTC](https://discuss.elastic.co/t/how-can-i-upgrade-the-elk-from-8-5-1-to-8-11-4-docker-without-losing-data/355045/4 "2024-04-12T20:01:35Z")

</div>

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