# Migrate self hosted server from 3.18 snap to 5.0 docker based installation

**URL:** <https://forums.rocket.chat/t/migrate-self-hosted-server-from-3-18-snap-to-5-0-docker-based-installation/14768>\
**Category:** Community Support\
**Tags:** docker, snap, self-managed\
**Created:** [August 25, 2022, 6:59am UTC](https://forums.rocket.chat/t/migrate-self-hosted-server-from-3-18-snap-to-5-0-docker-based-installation/14768 "2022-08-25T06:59:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [August 25, 2022, 1:33pm UTC](https://forums.rocket.chat/t/migrate-self-hosted-server-from-3-18-snap-to-5-0-docker-based-installation/14768/2 "2022-08-25T13:33:26Z")

</div>

Hi!

you will need to run a docker version with 3.18.7.  
Then you will restore mongo db from snap to the same version in a docker environment.

While upgrading, don’t jump majors. Go first to 4.8.4, then to latest 5.0.4

Let me know if this helps.

Thanks!

---

_[View the full topic](https://forums.rocket.chat/t/migrate-self-hosted-server-from-3-18-snap-to-5-0-docker-based-installation/14768)._
