Hello All,

I currently have a home server on a raspberry pi 4 with all my services running as docker containers. All containers have their own directories containing the config and database files. This makes it easy to backup and export then.

​

However, in the future I have plans to migrate to a more powerful server. This means I will probably not be using a CPU with an ARM architecture. So effectively, I will also have to use the corresponding docker images. So will this new x86 docker image work with my backup docker config volumes?

  • SnowyLocksmith@alien.topOPB
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    Yes, I know that. I am just curious if the files containing the data of previous images will work with the new images as well?

    • Ieris19@alien.topB
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 years ago

      It should, in theory, only the binaries should be different so all config/media should work.

    • Sir_Squish@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      You’ll have to make sure the volumes are mapped to appropriate directories. Such that if on your pi setup its /somedir/app1/blah, that you change it to /newdir/app1/blah.

      It’s even easier if you re-create the same directory heirarchy on the new server, and you can rsync your folders over. I found it easier to re-create the containers first, and all my volume mounts are bind type: ie use an existing folder, rather than letting docker create the volume wherever it wants.

      I did exactly this kind of migration not that long ago, and for the same reason, and from the same source/destination platforms.