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.

Move Docker image

Featured Replies

I had a BTRFS error on my cache pool so i hade to format. I backed up my app data with this guide but something went wrong and I was not able to save the docker images. 

I set up my docker when I installed Unraid a long time ago and managed to set the docker image to rest on a share that i named "Docker".

This (at least i think) resulted in the docker programs acting up. Radarr isn't finding any media, can't Unifi Controller loses it's config.

 

Reading the guide for setting up Docker and of course, the recommendation is to set the Docker image directly to the Cache device.

 

Can I move the Docker image to the cache drive with midnight commander or some other way without loosing the docker apps?

 

 

  • Community Expert

The docker image normally only holds the binaries for the containers and not their variable data.

 

Assuming that is how you are using docker in this manner then the easiest thing to do is;

  • stop the docker service under Docker->Settings
  • if you are using the ‘appdata’ share to hold the docker container’s variable data make sure the share is set to Use Cache=Prefer.   You can now run mover to get ‘appdata’ files that are on the array moved to the cache disk
  • delete the existing docker image file

  • in the docker Settings specify the new location to be used for the docker image.

  • restart the docker service.   This will create a new empty docker image file.
  • use the Previous Apps option in Community Applications to re-instate your dockers (with their existing Settings).   At this point you can adjust (if necessary) any settings you want to change.   As you add each container back, the latest binaries will be downloaded and added to the docker image.
  • 1 year later...

I'd like to move my libvirt.img and docker.img to make things faster. At the moment, they're both in "system" share, which is set to Not use cache drive.

Is the method @itimpi described above still accurate?

How about changing the system share to Use Cache=Prefer, stopping Docker and VM, then running mover?

 

thanks!

28 minutes ago, dkerlee said:

How about changing the system share to Use Cache=Prefer, stopping Docker and VM, then running mover?

As long as you disable the Docker and VM services, then yes. It's not enough to just stop the containers and VM's. The docker and VM's tab should be gone from the GUI during the move.

thanks a million, did like you said, back up and running with zero issues. Thanks! That would make a tidy wiki entry somewhere...

For posterity:

 

1. stop VM and Docker services through Settings

2. changed Share "system" to Prefer cache drive (location of docker.img)

3. ran mover, waited to complete

4. Started Docker service. While my Apps/Dockers appeared to be present and working...

5. Got this error message

Quote

"Your existing Docker image file needs to be recreated due to an issue from an earlier beta of unRAID 6. Failure to do so may result in your docker image suffering corruption at a later time. Please do this NOW!"

6. Deleted docker.img using a terminal

7. went to APPS tab, then Previous Apps on left

8. Selected all the Apps I'd been using (I also increased my docker image file a bit, I'd been hitting 70% regularly), installed all Apps

 

Back up and running with all settings and previous stuff, no worries. Nice one folks! Thanks a million.

  • 1 month later...

Thank you @itimpi

I got a corrupted docker.img file and had installed a bunch of dockers in the last few months that took me quite a while.  The info below was a life saver.  

"use the Previous Apps option in Community Applications to re-instate your dockers (with their existing Settings)."

Thanks

Joe

 

  • 8 months later...

Hi, 

 

sorry for necroposting but I followed your steps but docker are not responding (even if they are restored).

 

MariaDB for example is running but unreachable.

 

Any hint?

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.