Jump to content

Moving a Docker Container's Data Folder to Another Share


Go to solution Solved by itimpi,

Recommended Posts

Posted

Hi all, 

 

When I first started using Unraid a little over a year ago, for some reason, when I installed Kavita, I set the data directory to where I store my media instead of the actual appdata share. I haven't had any issues with it there, but I would like to move it to its proper share.

 

So, I was wondering what the best approach would be to move it from essentially my media share to the appdata share?

 

I was thinking of backing up the appdata-relevant info, uninstalling Kavita, deleting the leftover files, reinstalling it properly, and replacing the fresh install with the backed-up data.

 

But I figured it doesn't hurt to ask before doing so, just in case there is a better process.

 

Thanks!

Screenshot 2024-06-06 223550.png

  • Solution
Posted

You should be able to simply do:

  • Stop the docker container
  • Move the data to its new location.
  • Edit the volume mappings for the container to point to the new location on the host side.
  • restart the container.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...