# Migrating assets from old installation into docker

**URL:** <https://meta.discourse.org/t/migrating-assets-from-old-installation-into-docker/36799>\
**Category:** Self-hosting\
**Created:** [16 Diciembre, 2015 19:08 UTC](https://meta.discourse.org/t/migrating-assets-from-old-installation-into-docker/36799 "2015-12-16T19:08:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![stefanini.mf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stefanini.mf/32/121693_2.png) [@stefanini.mf](https://meta.discourse.org/u/stefanini.mf)\
**Post date:** [16 Diciembre, 2015 19:08 UTC](https://meta.discourse.org/t/migrating-assets-from-old-installation-into-docker/36799/1 "2015-12-16T19:08:30Z")

</div>

Hi there. 😃

I’m migrating a self-installed discourse to a docker install.  
As my database is setup with amazon RDS, I found no complication in just setting up the docker version and pointing to the old-good database we were already using. However, as expected, all my assets like attachments and and profile pics are in the `/public` folder of the old installation.

My expectations were that I’d easily find a `/public` folder in the docker version and make a `cp -r` of my files there, but docker seems to create a slightly more complicated directory hierarchy with some hashes and stuff. eg:

`/var/lib/docker/aufs/mnt/4d9d59bbbbaa4b4791b72b0b8c8421584f6baa7469dae92282e2cf5e93327c28/var/www/discourse/public`

😞

and I now have a few `/public` folders with different hashes each.

I’ve found this post: [Migrate an old Discourse install to Docker](https://meta.discourse.org/t/migrating-an-old-discourse-install-to-docker/12439) so far.

But checking what will be done by this, it looks like it’s gonna dump the whole database and some other stuff as well (which seems to me to be an overkill, as I’m using the same db and we have a rather big one running in production).

Does anyone know or can think of a nice way of doing this?  
Or maybe a workaround for my `cp -r` plan

Thanks, beforehand. 😉

---

_[View the full topic](https://meta.discourse.org/t/migrating-assets-from-old-installation-into-docker/36799)._
