# Updating MM docker container

**URL:** <https://forum.mattermost.com/t/updating-mm-docker-container/15279>\
**Category:** Troubleshooting\
**Created:** [March 5, 2023, 4:53pm UTC](https://forum.mattermost.com/t/updating-mm-docker-container/15279 "2023-03-05T16:53:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rikrdo89](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rikrdo89/32/6494_2.png) [@rikrdo89](https://forum.mattermost.com/u/rikrdo89)\
**Post date:** [March 5, 2023, 4:53pm UTC](https://forum.mattermost.com/t/updating-mm-docker-container/15279/1 "2023-03-05T16:53:11Z")

</div>

I have an installation of MM using docker-compose, and I am pulling the `latest` tag as indicated in my `env` file:

```auto
MATTERMOST_IMAGE_TAG=latest

```

**Couple of questions:**  
**1.what is the recommended way of updating this docker installation?**  
I found the option to update straight from the web site under `system console > workspace optimization > server updates`, but is this something I should click if I am using docker? (I don’t want to break my installation so making sure this is ok)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/c/c09eb0c1a5a5d058cc3639a3c7d93ebd683a2a8d.png)

**2 How do I check the version I am running?**  
Inspecting the container using `sudo docker inspect matter-mattermost-1` does not reveal any tag with a version number in it. And in the web, `system console > about` only shows that my plan is “Team Edition” but does not disclose a version anywhere.

---

<div class="post-metadata">

**Author:** ![Akito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/akito/32/4090_2.png) [@Akito](https://forum.mattermost.com/u/Akito)\
**Post date:** [March 6, 2023, 1:47am UTC](https://forum.mattermost.com/t/updating-mm-docker-container/15279/2 "2023-03-06T01:47:13Z")

</div>

If you are in the default Mattermost view, seeing Teams, Channels, etc., then you click in the top left corner, where it says “Channels”, then you pick “About ”.

There it tells you the exact Mattermost version.

I _guess_, upgrading should work the same, as if it weren’t Docker, but you should create a full backup before **any** upgrade, anyway!

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [March 6, 2023, 6:04am UTC](https://forum.mattermost.com/t/updating-mm-docker-container/15279/3 "2023-03-06T06:04:26Z")

</div>

ad 1)  
When you click on the “Download update” button, it will just direct you to Mattermost website where you can download new binaries and this is not the way to update your docker depoyment.  
Chaning the `MATTERMOST_IMAGE_TAG` in your `.env` file is the way to go, although I just found out that `latest` points to `7.8.0` right now, although it should point to `7.8.1`…

ad 2)  
You can also use `mmct` for that - not sure if you’ve already set it up to work in local mode, but it’s very handy for lots of things.

```auto
# docker exec <yourmattermostcontainerid> mmctl --local system version
Server version 7.8.1.7.8.1.bad2b9b08677eeb9d63e565a28350d8e.false

```

---

<div class="post-metadata">

**Author:** ![rikrdo89](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rikrdo89/32/6494_2.png) [@rikrdo89](https://forum.mattermost.com/u/rikrdo89)\
**Post date:** [March 6, 2023, 7:59pm UTC](https://forum.mattermost.com/t/updating-mm-docker-container/15279/4 "2023-03-06T19:59:05Z")

</div>

> [@agriesser](#):
>
> set it up to work in local mode,

Thanks for the response. My installation is running from docker. What do you mean to set it up to work in local mode? using the mmctl command or is there an extra step to work in “local mode”?

---

<div class="post-metadata">

**Author:** ![rikrdo89](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rikrdo89/32/6494_2.png) [@rikrdo89](https://forum.mattermost.com/u/rikrdo89)\
**Post date:** [March 6, 2023, 10:36pm UTC](https://forum.mattermost.com/t/updating-mm-docker-container/15279/5 "2023-03-06T22:36:25Z")

</div>

You are right. I found it!  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/8/8cb1a442f46388888b30c805d25bea12e4a07647.png)

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [March 7, 2023, 6:00am UTC](https://forum.mattermost.com/t/updating-mm-docker-container/15279/6 "2023-03-07T06:00:34Z")

</div>

> [@rikrdo89](#):
>
> What do you mean to set it up to work in local mode? using the mmctl command or is there an extra step to work in “local mode”?

Yes, you can configure the variable `EnableLocalMode` in your `config.json` and restart the server afterwards. If you do that, you can use `mmctl --local` which bypasses authentication (since it connects via the UNIX socket created after enabling this option). If you do not use the local mode, you need to regularly login to your Mattermost server using `mmctl auth`.
