# Trying to upgrade elasticsearch docker from 1.5.2 to 2.4.6

**URL:** <https://discuss.elastic.co/t/trying-to-upgrade-elasticsearch-docker-from-1-5-2-to-2-4-6/296569>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [February 8, 2022, 9:42am UTC](https://discuss.elastic.co/t/trying-to-upgrade-elasticsearch-docker-from-1-5-2-to-2-4-6/296569 "2022-02-08T09:42:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saranya\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saranya_v/32/98464_2.png) [@Saranya\_V](https://discuss.elastic.co/u/Saranya_V)\
**Post date:** [February 8, 2022, 9:42am UTC](https://discuss.elastic.co/t/trying-to-upgrade-elasticsearch-docker-from-1-5-2-to-2-4-6/296569/1 "2022-02-08T09:42:57Z")

</div>

Can you please share the steps to upgarde the Elasticsearch running in docker.  
Have tried the steps mentioned in the below link. But all indexes were failing to come up.

step1: Disable shard alloation(PUT /\_cluster/sttings)  
Step2: perform a synced flush(/index/\_flush/synced)  
step 3: shutdown and upgrade all nodes(stop the container and retag the upgraded Elasticsearch)  
After this step getting error.

steps im doing is correct? if not please share the steps to do the same.

> **[Full cluster restart upgrade | Elasticsearch Guide \[2.0\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/restart-upgrade.html)**

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 8, 2022, 9:49pm UTC](https://discuss.elastic.co/t/trying-to-upgrade-elasticsearch-docker-from-1-5-2-to-2-4-6/296569/2 "2022-02-08T21:49:24Z")

</div>

Welcome to our community! 😃

2.X is no longer supported and you really need to upgrade to a newer version.

---

<div class="post-metadata">

**Author:** ![Saranya\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saranya_v/32/98464_2.png) [@Saranya\_V](https://discuss.elastic.co/u/Saranya_V)\
**Post date:** [February 9, 2022, 11:16am UTC](https://discuss.elastic.co/t/trying-to-upgrade-elasticsearch-docker-from-1-5-2-to-2-4-6/296569/3 "2022-02-09T11:16:26Z")

</div>

Currently, we are using the 1.5.2 version. we need to move to the latest.  
We planned to move 2._, then 5._ finally 7.0

Is this approach is correct? if not please suggest the right approach and steps to do the same.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 9, 2022, 10:26pm UTC](https://discuss.elastic.co/t/trying-to-upgrade-elasticsearch-docker-from-1-5-2-to-2-4-6/296569/4 "2022-02-09T22:26:35Z")

</div>

You'd be better off starting up a new 7.17 cluster, updating your mappings, then doing a remote reindex into that new cluster.

---

<div class="post-metadata">

**Author:** ![Saranya\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saranya_v/32/98464_2.png) [@Saranya\_V](https://discuss.elastic.co/u/Saranya_V)\
**Post date:** [February 10, 2022, 7:54am UTC](https://discuss.elastic.co/t/trying-to-upgrade-elasticsearch-docker-from-1-5-2-to-2-4-6/296569/5 "2022-02-10T07:54:50Z")

</div>

Thanks for your suggestions.  
Is there any plugin available to update mappings and check the changes.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 10, 2022, 8:26am UTC](https://discuss.elastic.co/t/trying-to-upgrade-elasticsearch-docker-from-1-5-2-to-2-4-6/296569/6 "2022-02-10T08:26:16Z")

</div>

There are migration assistants in later versions, but they require you to upgrade in place.

---

<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 10, 2022, 8:27am UTC](https://discuss.elastic.co/t/trying-to-upgrade-elasticsearch-docker-from-1-5-2-to-2-4-6/296569/7 "2022-03-10T08:27:00Z")

</div>

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