# Upgrade Single Node Docker Instance

**URL:** https://discuss.elastic.co/t/upgrade-single-node-docker-instance/349041
**Category:** Elasticsearch
**Tags:** docker
**Created:** [December 11, 2023, 12:09pm UTC](https://discuss.elastic.co/t/upgrade-single-node-docker-instance/349041 "2023-12-11T12:09:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![litronics](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@litronics](https://discuss.elastic.co/u/litronics)
#### Post date: [December 11, 2023, 12:09pm UTC](https://discuss.elastic.co/t/upgrade-single-node-docker-instance/349041/1 "2023-12-11T12:09:38Z")

</div>

Hi,  
I am trying to upgrade a single node docker instance from 8.6.0 to the latest version.

My first try was to update the docker containers to the latest version and start them on the old data. Kibana upgraded well and complained that it is not able to connect to the old 8.6.0 elasticsearch container.

I then downgraded all containers to 8.6.2 and hoped that elasticsearch will automatically upgrade to that version - but it doesn't ☹

Currently I have no idea how I can get my elasticsearch to upgrade to the next version - any ideas would be really wellcome!

Probalby important to notice - elasticsearch as well as kibana running in "healthy" state.

---

<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: [December 11, 2023, 2:00pm UTC](https://discuss.elastic.co/t/upgrade-single-node-docker-instance/349041/2 "2023-12-11T14:00:37Z")

</div>

> [@litronics](#):
>
> My first try was to update the docker containers to the latest version and start them on the old data.

This is the correct approach to upgrade docker containers.

> [@litronics](#):
>
> Kibana upgraded well and complained that it is not able to connect to the old 8.6.0 elasticsearch container.

This means that your version of Kibana was different from Elasticsearch, Kibana needs to be the same version as the Elasticsearch nodes.

> [@litronics](#):
>
> I then downgraded all containers to 8.6.2 and hoped that elasticsearch will automatically upgrade to that version - but it doesn't

Elasticsearch does not support downgrade, but it is not clear what is your issue here, did you upgrade your elasticsearch containers and then kibana?

---

<div class="post-metadata">

### Author: ![litronics](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@litronics](https://discuss.elastic.co/u/litronics)
#### Post date: [December 11, 2023, 2:24pm UTC](https://discuss.elastic.co/t/upgrade-single-node-docker-instance/349041/3 "2023-12-11T14:24:23Z")

</div>

I found the stupid issue.

In my compose file I persisted the whole ${ELASTIC\_DIR} and not just the /data folder in it. Hence, I can base my docker container on any new image - it just stays at the initial deployed version.

---

<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: [January 8, 2024, 2:24pm UTC](https://discuss.elastic.co/t/upgrade-single-node-docker-instance/349041/4 "2024-01-08T14:24:57Z")

</div>

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