# Docker to docker migration: messed up config file structure

**URL:** <https://forums.plex.tv/t/docker-to-docker-migration-messed-up-config-file-structure/897329>\
**Category:** Plex Media Server\
**Tags:** server-unraid\
**Created:** [November 29, 2024, 11:25am UTC](https://forums.plex.tv/t/docker-to-docker-migration-messed-up-config-file-structure/897329 "2024-11-29T11:25:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hubmin](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@hubmin](https://forums.plex.tv/u/hubmin)\
**Post date:** [November 29, 2024, 11:25am UTC](https://forums.plex.tv/t/docker-to-docker-migration-messed-up-config-file-structure/897329/1 "2024-11-29T11:25:29Z")

</div>

Server Version#: Version 1.41.3.9232 (?!?! - see below)  
Player Version#: N/A  
Host: UnRAID 7.0.0 beta

I think I’m going a bit mad; at the very least, I’m confused. I have a pretty good understanding of Docker, but not so much of the Plex file and folder structure.

Two questions:

**1)**

**TL:DR** : valid files and folders are in `/config` but new official container is looking in `config/Library/Application Support/Plex Media Server`, other than `Preferences.xml`, what other files and folders do I need to more to the `Plex Media Server` folder??

I’m trying to migrate from an old hotio container to the official Plex container, but it failed. The new container would create a new server instance in PMS and not rejoin to the old server. After some head scratching, I realised that even though the binds are the same on both containers, the _hotio_ container is looking at the root of the bind point ‘mnt/user/appdata/plex/’ for preferences.xml etc, whereas the container using the official Plex image is looking in `/mnt/user/appdata/plex/Library/Application Support/Plex Media Server` - I’ve concluded this, by seeing the modified date of the preferences.xml being updated based on which container is started.

So which files and folders at the root do I move into `Library/Application Support/Plex Media Server`, and which do I delete?

This is my folder structure on `config`:

```shell
root@Hub:/mnt/user/appdata/plex# ls -1
Cache/
Codecs/
Codecs\ old/
Crash\ Reports/
Diagnostics/
Drivers/
Library/
Logs/
Media/
Metadata/
OldCodecs/
Plug-in\ Support/
Plug-ins/
Preferences-backup-19-09-24.xml
Preferences.xml
Scanners/
Setup\ Plex.html
Updates/
plexmediaserver.pid

```

and of `config/Library/Application Support/Plex Media Server`

```shell
root@Hub:/mnt/user/appdata/plex/Library/Application Support/Plex Media Server# ls -1
Cache/
Codecs/
Crash\ Reports/
Diagnostics/
Drivers/
Logs/
Plug-in\ Support/
Plug-ins/
Preferences.xml
Setup\ Plex.html
Updates/

```

And to double check I’m not mad, here’s the docker config:  
Old

```json
"Name": "/plex",
...
"HostConfig": {
    "Binds": [
        "/mnt/user/data/media/:/data/media:rw",
        "/mnt/user/appdata/plex/:/config:rw",
        "/tmp:/transcode:rw"
...
    "Image": "cr.hotio.dev/hotio/plex",
...
    "Labels": {
...
        "org.opencontainers.image.vendor": "hotio",
        "org.opencontainers.image.version": "1.32.8.7639-fb6452ebf"

```

New

```json
"Name": "/Plex-Media-Server",
...
"HostConfig": {
    "Binds": [
        "/mnt/user/data/media/:/data/media:rw",
        "/mnt/user/appdata/plex/:/config:rw",
        "/tmp:/transcode:rw"
    ],
...
    "Image": "plexinc/pms-docker",
...
    "Labels": {
...
        "org.opencontainers.image.vendor": "Plex, GmbH",
        "org.opencontainers.image.version": "1.41.2.9200-c6bbc1b53"

```

**2)**  
This one’s more straightforward. Even though I’m using the old, not updated anymore, hotio image, the Web GUI says I’m running cersion `1.41.3.9232`. Is this a concern? I’m thinking of database schema mismatch or similar issues.

---

<div class="post-metadata">

**Author:** ![hubmin](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@hubmin](https://forums.plex.tv/u/hubmin)\
**Post date:** [December 1, 2024, 9:20pm UTC](https://forums.plex.tv/t/docker-to-docker-migration-messed-up-config-file-structure/897329/2 "2024-12-01T21:20:11Z")

</div>

Ok if I bump this?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [March 1, 2025, 9:20pm UTC](https://forums.plex.tv/t/docker-to-docker-migration-messed-up-config-file-structure/897329/3 "2025-03-01T21:20:39Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
