Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Added new cache drive-Need help moving docker and setting up appdata correctly

Featured Replies

Update-I have docker running and that is in my apps folder on the array and I think I need to move it to my new cache drive. How do I do that?

 

Ok, I just added a 120gb SSD to my unraid setup 6.1.7. I basically have plex running on my unraid and wanted to get things moved to the cache drive correctly. Apparently I have an apps folder and an appdata folder. I did the settings to have the appdata share as cache only but I noticed my apps folder has plex and the docker info in it. Not sure what I'm supposed to copy of not to where. My config for the plex on docker shows /config  /mnt/user/Apps/Docker/apps/plexmediaserver so it looks like it is in my apps folder. How do I setup this up right to use my cache drive. I have read other posts like these

http://lime-technology.com/forum/index.php?topic=41765.msg396691#msg396691

http://lime-technology.com/forum/index.php?topic=44152.msg421468#msg421468

http://lime-technology.com/forum/index.php?topic=39419.msg367832#msg367832

 

but my setup is different apparently. Please help?

Settings - Docker to disable docker.

 

For the actual moving, it is probably simpler to use mc (Midnight Commander, google it) from telnet/ssh/console logged in as root rather than trying to do this over the network in Windows File Explorer or similar since you won't need to deal with permissions.

 

Login and type mc and move things where you want them. Your array disks are at /mnt/disk# and your cache disk is at /mnt/cache. I recommend recreating docker.img instead of moving it.

 

Settings - Docker to recreate docker.img where you want it.

 

Select each of your "my-templates" from the dropdown on the Docker page. Check the volume mappings of each and make any changes to match where you have moved things.

 

When you add each docker here is what will happen:

 

Your template changes will be saved.

The docker code will be downloaded to your docker.img

The docker will run with the settings from your template, and it will find your "appdata" if you have made these settings correctly.

 

Let me know if you need more details.

  • Author

I guess what I'm confused about is what I should move to my appdata folder on the cache drive? Should I just rename my apps folder appdata and make it a cache only folder or do I need to move everything?

 

If I do need to move them items what do I move? In my apps folder (attached screenshot) I have the following folders: crashplan (not using so don't care about it), docker, Library, tmp, and docker.img. In the docker folder (attached screenshot) there is apps folder and another docker.img. The apps subfolder has plex in it. The library folder has application support and crash plan again. In it is plex that look old from dates modified.

 

I'm just trying to figure out what I need to move to the cache drive to make plex still work? I have old stuff on here from versions of unraid upgrade and me being a noob trying to install it.

 

Apps_folder.JPG.a2edddebd4c11fd9dbafad776469f5ef.JPG

Docker_folder.JPG.ddfbad9eeebb73b777a832dc6c224b33.JPG

Apps_folder.JPG.cda22a10f4e8a6ac89e4a7be8c8bea8a.JPG

2 of your screenshots are the same. Also, you have named the images with an uppercase first character. Linux is case-sensitive. What are the exact names of the folders?

  • Author

I hit preview and it deleted the image so I attached it again. It must have still uploaded it twice. Are you talk about the images I uploaded or the dockers.img? The folders are those names minus the upper case letter.

Are you on Windows? Do you have PuTTY?

 

Take a screenshot of your Dockers page so we can see what you have now. Most importantly make sure the Volume Mappings are visible in the screenshot. Post the screenshot of your Dockers page.

 

I don't use some of your dockers so may not be able to tell you exactly how to set some of them up but if you have them working now it shouldn't matter since we are just going to move them.

 

Probably easiest to take this one at a time then after you see how it works you can just repeat. I will tell you how I would do it and you can make changes to this if you want. I am not going to actually do this on my own server so you may have to give me some feedback since I will not be testing these instructions.

 

Go to Settings - Docker and set Enable Docker to No and Apply. Then tell it where and how big you want your docker.img. I have 20GB with 8 dockers installed and I have plenty of room. I recommend putting it at /mnt/cache/docker.img. Since this is a file at the top level of the cache drive, it will not be touched by mover, which only moves folders, and also it will not appear in any user share since they are folders.

 

Then set Enable Docker to Yes and Apply. It may take a little while to create the docker.img

 

Then if you go to Docker, you shouldn't have any dockers since none have been created in docker.img yet. Take it this far and let me know if it works like I said and we can move on to moving one of your dockers files and recreating it.

 

 

You seem to have two docker.img files! One of them is dated 9/4/2015 and is in what you call your Apps folder. The other is dated 1/21/2016 and is in what you call your Docker folder. Maybe that's adding confusion.

 

Edit: I see that you mention the fact in Reply #2 but you don't say why you have two.

 

Edit: If it helps, I have my docker.img in my /mnt/cache. I also have a cache-only share called appdata. So, once the mover has done its thing the items that remain permanently in my /mnt/cache are just docker.img and the appdata folder. Within appdata I have a sub-folder for each of my Dockers. It doesn't need to be any more complicated than that. You seem to have things in multiple places instead of neatly together, which I think is confusing you.

 

  • Author

Ok, I did what you said trurl. I do have windows and I can putty into the server.

 

I posted docker image before change and after change.

 

Now on my docker page there is no dockers as you said. The only docker I'm using is plex.

 

docker.JPG.0c565c69ca8eef2886e5e3f59c9dea52.JPG

docker_after_moved_to_cache_drive.JPG.147b896001b4bb07a3dc6413b758de0d.JPG

I recommend a share named appdata for your app working data. Many of the templates from the docker authors assume that and many other users have it that way. So create a user share named appdata and set it to Use cache disk: Only.

 

According to your screenshot, your plex data is in a folder named plexmediaserver at /mnt/user/Apps/Docker/apps. Use Mignight Commander to copy this folder to /mnt/user/appdata so it is /mnt/user/appdata/plexmediaserver.

 

Also according to your screenshot, you have a template for PlexMediaServer. On the Docker page, push the Add Container button then select your template from the dropdown at the top. It will be the one named "my-PlexMediaServer". The template will be loaded from your flash and it will have the volume mappings you had before.

 

Change the Host path for the /config Container volume to /mnt/cache/appdata/plexmediaserver. I recommend /mnt/cache instead of /mnt/user for this one volume mapping because it is on the cache disk and some have reported issues with using a user share for appdata with some dockers so specifying the disk is more likely to always work.

 

Leave the others the same and push the Create button. The template changes will be saved, the docker container code will be downloaded to your docker.img, and unRAID will execute the docker run command using the parameters from the template.

 

After the docker code has downloaded, wait a little while for the docker to start up. You can check its progress by clicking on the docker container's icon to view its logs. After it looks like it has finished starting, click on the docker icon again to launch its web interface. You should see plex with all it contents just like you had them before.

 

If this all works you can use Midnight Commander to delete the original plexmediaserver folder you had at /mnt/user/Apps/Docker/apps.

  • Author

Ok we are good :). Plex is rescanning my library and things are working. I had to rebuild my channels in plex but that is no big deal.

 

Thanks for the help. Pretty much all the the files in the apps folder were old and not being used so I deleted them.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.