# Docker - how to upgrade the running docker instance with keeping all data inside?

**URL:** <https://forum.mattermost.com/t/docker-how-to-upgrade-the-running-docker-instance-with-keeping-all-data-inside/524>\
**Category:** Installation\
**Created:** [November 19, 2015, 8:14am UTC](https://forum.mattermost.com/t/docker-how-to-upgrade-the-running-docker-instance-with-keeping-all-data-inside/524 "2015-11-19T08:14:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mihai\_satmarean](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mihai\_satmarean](https://forum.mattermost.com/u/mihai_satmarean)\
**Post date:** [November 19, 2015, 8:14am UTC](https://forum.mattermost.com/t/docker-how-to-upgrade-the-running-docker-instance-with-keeping-all-data-inside/524/1 "2015-11-19T08:14:58Z")

</div>

having run `docker run --name mattermost-dev -d --publish 8065:80 mattermost/platform` on mattermost ver 1.1  
we would like to test version 1.2 but we would like to keep all the authorisations and all we made in the current running instance.  
Is there a way we can do that?  
Thank you!

---

<div class="post-metadata">

**Author:** ![pearofducks](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/pearofducks/32/266_2.png) [@pearofducks](https://forum.mattermost.com/u/pearofducks)\
**Post date:** [November 19, 2015, 8:38am UTC](https://forum.mattermost.com/t/docker-how-to-upgrade-the-running-docker-instance-with-keeping-all-data-inside/524/2 "2015-11-19T08:38:57Z")

</div>

It’s stated as a “single container preview” - so the team is stating this was meant to be ephemeral.

Two paths (the team might know yet another way):

### 1. You can extract your data and then use a newer version, with a more permanent setup

You can get a working shell inside the running container with `docker exec`, you can find mysql credentials [here](https://github.com/mattermost/platform/blob/master/docker/1.1/Dockerfile) and probably do a mysql dump.

To copy files out of the container and to your host, you can use `docker cp`.

### 2. You can try and upgrade the instance inside the container

Again, use `docker exec` to gain a shell inside the running container, then upgrade the Mattermost instance from inside the container.

---

<div class="post-metadata">

**Author:** ![eric](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/eric/32/242_2.png) [@eric](https://forum.mattermost.com/u/eric)\
**Post date:** [November 19, 2015, 9:00pm UTC](https://forum.mattermost.com/t/docker-how-to-upgrade-the-running-docker-instance-with-keeping-all-data-inside/524/3 "2015-11-19T21:00:32Z")

</div>

Hi @mihai_satmarean,

Thanks @pearofducks for the response. Have you taken a look at our [Upgrade Guide](https://github.com/mattermost/platform/blob/master/doc/install/Upgrade-Guide.md) as well?

---

<div class="post-metadata">

**Author:** ![pearofducks](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/pearofducks/32/266_2.png) [@pearofducks](https://forum.mattermost.com/u/pearofducks)\
**Post date:** [November 20, 2015, 7:14am UTC](https://forum.mattermost.com/t/docker-how-to-upgrade-the-running-docker-instance-with-keeping-all-data-inside/524/4 "2015-11-20T07:14:18Z")

</div>

403 forbidden on that link @eric!

---

<div class="post-metadata">

**Author:** ![it33](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/it33/32/3_2.png) [@it33](https://forum.mattermost.com/u/it33)\
**Post date:** [November 20, 2015, 8:12am UTC](https://forum.mattermost.com/t/docker-how-to-upgrade-the-running-docker-instance-with-keeping-all-data-inside/524/5 "2015-11-20T08:12:00Z")

</div>

Hi @pearofducks, here’s the [correct link](https://github.com/mattermost/platform/blob/master/doc/install/Upgrade-Guide.md)
