# \[Solved\] Please help - How to update rocket.chat on Docker?

**URL:** https://forums.rocket.chat/t/solved-please-help-how-to-update-rocket-chat-on-docker/6672
**Category:** Community Support
**Created:** [April 23, 2020, 7:04am UTC](https://forums.rocket.chat/t/solved-please-help-how-to-update-rocket-chat-on-docker/6672 "2020-04-23T07:04:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ESCRACLE](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@ESCRACLE](https://forums.rocket.chat/u/ESCRACLE)
#### Post date: [April 23, 2020, 7:04am UTC](https://forums.rocket.chat/t/solved-please-help-how-to-update-rocket-chat-on-docker/6672/1 "2020-04-23T07:04:17Z")

</div>

### Description

I followed the official documentation ([https://rocket.chat/docs/installation/updating/#docker-installation](https://rocket.chat/docs/installation/updating/#docker-installation)) to upgrade Rocket.Chat (3.0.12) to the latest version, but the admin console says that I am still on 3.0.12.

I also followed the steps written here: [https://rocket.chat/docs/installation/docker-containers/docker-compose/](https://rocket.chat/docs/installation/docker-containers/docker-compose/) changing `develop` to `latest`.

```bash
docker pull rocketchat/rocket.chat:latest
docker-compose stop rocketchat
docker-compose rm rocketchat
docker-compose up -d rocketchat

```

What do I need to do to upgrade from 3.0.12 to 3.1.0? Should I just restart the VM?

Thanks in advance for your help!

### Server Setup Information

- Version of Rocket.Chat Server: 3.0.12
- Operating System: Debian
- Deployment Method: Docker
- Number of Running Instances: 1
- DB Replicaset Oplog: Enabled
- NodeJS Version:
- MongoDB Version: 4.0
- Proxy: nginx
- Firewalls involved: ufw

### Any additional Information

Pulling the image seems to have been done successfully.

 ![Clipboard01](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/7/7b174dd827328d18f4fb70e7088244cfd091e85f.jpeg)

---

<div class="post-metadata">

### Author: ![ESCRACLE](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@ESCRACLE](https://forums.rocket.chat/u/ESCRACLE)
#### Post date: [April 23, 2020, 9:51am UTC](https://forums.rocket.chat/t/solved-please-help-how-to-update-rocket-chat-on-docker/6672/2 "2020-04-23T09:51:42Z")

</div>

I was not referring the proper image on docker-compose.yml

[https://rocket.chat/docs/installation/docker-containers/#6-create-the-docker-composeyml-file--local-directories](https://rocket.chat/docs/installation/docker-containers/#6-create-the-docker-composeyml-file--local-directories)

I changed image from `rocket.chat:latest` to `rocketchat/rocket.chat:3.1.1` and it worked (To change `rocketchat/rocket.chat:latest` should work too).

So what I did was:

- `docker pull rocketchat/rocket.chat:3.1.1`
- Change the repository `docker-compose.yml` refers from `rocket.chat:latest` to `rocketchat/rocket.chat:3.1.1`
- `docker-compose stop rocketchat`
- `docker-compose rm rocketchat`
- `docker-compose up -d rocketchat`

I hope this helps.

---

<div class="post-metadata">

### Author: ![elciomartinsbf](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@elciomartinsbf](https://forums.rocket.chat/u/elciomartinsbf)
#### Post date: [July 14, 2020, 9:05pm UTC](https://forums.rocket.chat/t/solved-please-help-how-to-update-rocket-chat-on-docker/6672/3 "2020-07-14T21:05:20Z")

</div>

Please, help me!  
If we upgrade just pulling this image, my data wil be lost? Sorry bout the noob question! LOL!

---

<div class="post-metadata">

### Author: ![ESCRACLE](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@ESCRACLE](https://forums.rocket.chat/u/ESCRACLE)
#### Post date: [July 15, 2020, 5:50am UTC](https://forums.rocket.chat/t/solved-please-help-how-to-update-rocket-chat-on-docker/6672/4 "2020-07-15T05:50:56Z")

</div>

If you only pull the image, your data will not be lost.

For the official documentation about updating with `docker-compose`, consult: [https://docs.rocket.chat/installation/docker-containers/docker-compose](https://docs.rocket.chat/installation/docker-containers/docker-compose)
