# Upgrade container - keeping config and data

**URL:** <https://meta.discourse.org/t/upgrade-container-keeping-config-and-data/229968>\
**Category:** Self-hosting\
**Created:** [June 14, 2022, 7:24pm UTC](https://meta.discourse.org/t/upgrade-container-keeping-config-and-data/229968 "2022-06-14T19:24:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tschloss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tschloss/32/206387_2.png) [@tschloss](https://meta.discourse.org/u/tschloss)\
**Post date:** [June 14, 2022, 7:24pm UTC](https://meta.discourse.org/t/upgrade-container-keeping-config-and-data/229968/1 "2022-06-14T19:24:09Z")

</div>

Hello community,

I am feeling really bad that I didn‘t find this information, which I consider as really basic. Actually it is not about getting it up and running for the first time, but this category appears to me as closest cousin to my question.

Q: how to upgrade an existing installation through Docker?  
Background: I have used the in-app „update“ feature, which killed my Discourse instance. (I could specify if required).  
I am using a Debian 1-2 yrs old on a virtual host in the cloud (Hetzner).

So what I am looking for is to download a recent Docker image, build a container, but not losing my configuration (and data or course). I am not very skilled in Docker, so I do not trust myself to dive into it on my own.

I guess it is pretty simple, as this is part of the principle to use (unmutable or stateless) containers.

Thank you for your support.

Thomas

---

_[View the full topic](https://meta.discourse.org/t/upgrade-container-keeping-config-and-data/229968)._
