# Migrating from one Docker server to another

**URL:** <https://meta.discourse.org/t/migrating-from-one-docker-server-to-another/24748>\
**Category:** Product Support\
**Created:** [February 2, 2015, 11:40pm UTC](https://meta.discourse.org/t/migrating-from-one-docker-server-to-another/24748 "2015-02-02T23:40:44Z")\
**Posts on this page:** 7\
**Page:** 1

## AI-generated summary

[samnazarko](/t/-/24748/1) sought guidance on migrating a Discourse instance between Docker servers on Ubuntu 14.04, specifically asking how to identify the correct container for `docker save` and whether `docker load` would preserve the `/var/discourse` configuration. After encountering errors with container IDs, [samnazarko](/t/-/24748/2) questioned if using the Discourse admin panel backup and restore feature was a safe alternative. [DeanMarkTaylor](/t/-/24748/3) initially suggested the inquiry was similar to an existing topic, though [samnazarko](/t/-/24748/4) noted it did not resolve their specific issues. [DeanMarkTaylor](/t/-/24748/5) later clarified that while the backup method is safe, it only restores the database, attachments, and images, excluding any custom code changes, provided the "content" option is selected. Ultimately, [samnazarko](/t/-/24748/6) confirmed that the backup and restore method successfully resolved the migration.

<div class="post-metadata">

**Author:** ![samnazarko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samnazarko/32/109010_2.png) [@samnazarko](https://meta.discourse.org/u/samnazarko)\
**Post date:** [February 2, 2015, 11:40pm UTC](https://meta.discourse.org/t/migrating-from-one-docker-server-to-another/24748/1 "2015-02-02T23:40:44Z")

</div>

Hi

I am trying to migrate my Discourse instance from one Ubuntu 14.04 server running Docker to another and could not find a lot of documentation about this.

I have installed Docker on the new server, but I am not sure how to migrate the old forum. I know I can do docker save. But I have some questions:

- How do I know the name of the container to run ‘docker save’ on?
- Will docker load \< sometar on the other box recreate /var/discourse and all the YAML so I can just run ./launcher app rebuild and ./launcher app start?

Thanks

Sam

---

<div class="post-metadata">

**Author:** ![samnazarko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samnazarko/32/109010_2.png) [@samnazarko](https://meta.discourse.org/u/samnazarko)\
**Post date:** [February 2, 2015, 11:46pm UTC](https://meta.discourse.org/t/migrating-from-one-docker-server-to-another/24748/2 "2015-02-02T23:46:59Z")

</div>

I was able to get the container id with ps -a when it is running, but docker save gives me ‘No such container id’. Is it safe to just take a backup from the Discourse admin panel and restore that way?

S

---

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [February 2, 2015, 11:47pm UTC](https://meta.discourse.org/t/migrating-from-one-docker-server-to-another/24748/3 "2015-02-02T23:47:21Z")

</div>

Very similar to this topic:  
[https://meta.discourse.org/t/can-i-pack-the-server-and-move-it-to-another-server/23984](https://meta.discourse.org/t/can-i-pack-the-server-and-move-it-to-another-server/23984)

(although no specific answers to your query there)

---

<div class="post-metadata">

**Author:** ![samnazarko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samnazarko/32/109010_2.png) [@samnazarko](https://meta.discourse.org/u/samnazarko)\
**Post date:** [February 2, 2015, 11:49pm UTC](https://meta.discourse.org/t/migrating-from-one-docker-server-to-another/24748/4 "2015-02-02T23:49:42Z")

</div>

I saw that topic, but it did not resolve my query which is why I posted

---

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [February 2, 2015, 11:50pm UTC](https://meta.discourse.org/t/migrating-from-one-docker-server-to-another/24748/5 "2015-02-02T23:50:47Z")

</div>

Considering the topic was extremely similar it might have been best to continue and as for more details in the other topic.  
(bit late now - I don’t know).

Wait and see what the moderators do 😄

> [@samnazarko](#):
>
> Is it safe to just take a backup from the Discourse admin panel and restore that way?

But yes it should always be safe to make a backup and restore it - that’s what backups are for.  
Just make sure you include “content”.

The backups won’t include any code changes, just DB, attachments and images.

---

<div class="post-metadata">

**Author:** ![samnazarko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samnazarko/32/109010_2.png) [@samnazarko](https://meta.discourse.org/u/samnazarko)\
**Post date:** [February 9, 2015, 5:30pm UTC](https://meta.discourse.org/t/migrating-from-one-docker-server-to-another/24748/6 "2015-02-09T17:30:51Z")

</div>

Backup and restore worked

Thanks

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [February 9, 2015, 5:44pm UTC](https://meta.discourse.org/t/migrating-from-one-docker-server-to-another/24748/7 "2015-02-09T17:44:18Z")

</div>

Closed on February 9, 2015, 5:44pm UTC


