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.

***OFFICIAL GUIDE*** Restoring your Docker Applications in a New Image File

Featured Replies

  • Replies 94
  • Views 109.6k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • For those of you finding this (like me) in 2023.  Go to your docker tab in unraid. then top right of the page click the slider to change to advanced instead of basic.  under each docker list

  • rpmalouin
    rpmalouin

    So 8 years later this saved me after a power failure, lost all my docker containers. Who knew it was so EASY restore them  not me but I do now.

  • On the flash drive, edit this file: /config/docker.cfg. Remove the last line that's causing problems: DOCKER_OPTS="--runtime=nvidia"

Posted Images

Looking a little sheepish here,

 

sorry about that....

 

Easy does it. Or should I create my own repo?

 

I need a step by step guide then. But I guess you figured that out already :-[

  • Author

Lol, we've all been there.  So to catch me up, was this all just an issue with the repo or is that unrelated to the issue at hand?

How long does the building a new image takes ???? i have been stuck for almost half an hour and get no response from the server .... also would you recommend me to format my cache drive other than BTFRS ???

 

 

Edit i had to reboot the server and now i cant mount the array i have been waiting for over an hour ..... damn this is now starting to worry me

I created a new docker image and re-installed all my docker programs into it. However, there is a persistent problem I have been unable to solve. Under templates, there is a list of user created templates, but there are no other templates, even though I have gfjardm's repo saved under templates. Nothing. Any idea how to make those templates magically appear?

 

I'm having the same issue, i have three repo's and none of the templates are loading, reported in the beta14 thread

HOLD THE PHONE, LOL.

 

 

i deleted the docker hub repo.........

 

hang on, i'll rebuild it.

 

Thanks again, I was able to rebuil Asset-UPnP and recreate the docker image today.

Lol, we've all been there.  So to catch me up, was this all just an issue with the repo or is that unrelated to the issue at hand?

 

Yes, I was able to recreate my image using the steps in the OP this morning.

 

  • Author

How long does the building a new image takes ???? i have been stuck for almost half an hour and get no response from the server .... also would you recommend me to format my cache drive other than BTFRS ???

 

 

Edit i had to reboot the server and now i cant mount the array i have been waiting for over an hour ..... damn this is now starting to worry me

At what step specifically?

 

How large did you specify the image?

 

Can you access the server via telnet or SSH?

I rebuilt the docker image for beta 14a and it is running but when I try to reinstall the apps I had the templates don't load anything.  Even if I try the other templates, nothing is loaded.

 

The format of what is on the screen is different in the newest beta so does that mean all the templates have to be updated?

Don't know what happned but it is working now.

I wonder if someone could help.

 

After upgrading to 14b I followed the instructions on this page to recreate my docker img.

 

However when trying to add my previously installed applications under user defined templates I get "the command failed error". 

 

Edit - never mind, seems to be working now.  My saved templated had no data in them at all for some reason.  After trying a few times the data just appeared, no idea what was happening.

 

 

are you trying to load a docker from a repo or from local storage ?

 

Not sure what was going on, all the templates I had were empty.  However after a few attempts the templates seemed to populate themselves. 

 

To be honest I've no idea what happened, so I'd just ignore my post as it seems to be working fine now.

I just upgraded from b12 to b14b and after deleting my docker image and re-creating it, my user-defined templates were all blank, as well as the default templates.  I ended up deleting out the repository, applying, and adding back the repository.  After that, all the templates were populated.

*I just read that others are having this issue... Again likely not expected, but if you are patient it will finish building the new image. Take a look at the image size growing through the cache directory share (or wherever, slowly) and you'll know it's working and not frozen.

 

For some reason (IDK, maybe it's normal, but I doubt it!) when I delete docker.img and recreate a new exactly the same named docker.img it takes a LONG time to create it, like hours!

I had this previously happen when I had a corruption issue (ran out of space), so I deleted my 10GB one, and made a new one with the exact same name 15GB.

The UI just spins, and spins, however I can see that it is still going by looking on the cache drive and seeing the image size growing.

 

The exact same issue that I had when doing this previously (10GB to 15GB) is happening now when I deleted and recreated for the new image with the No COW image.

 

I'd assume not normal, thought I'd chime in, see if fixable.

 

It will eventually go, but no lie almost an hour to build a 15GB image on an SSD cache drive.

  • Author

*I just read that others are having this issue... Again likely not expected, but if you are patient it will finish building the new image. Take a look at the image size growing through the cache directory share (or wherever, slowly) and you'll know it's working and not frozen.

 

For some reason (IDK, maybe it's normal, but I doubt it!) when I delete docker.img and recreate a new exactly the same named docker.img it takes a LONG time to create it, like hours!

I had this previously happen when I had a corruption issue (ran out of space), so I deleted my 10GB one, and made a new one with the exact same name 15GB.

The UI just spins, and spins, however I can see that it is still going by looking on the cache drive and seeing the image size growing.

 

The exact same issue that I had when doing this previously (10GB to 15GB) is happening now when I deleted and recreated for the new image with the No COW image.

 

I'd assume not normal, thought I'd chime in, see if fixable.

 

It will eventually go, but no lie almost an hour to build a 15GB image on an SSD cache drive.

I had this happen to me once before in testing a long time ago, but could never recreate it thereafter.

 

Can you share a syslog?

I had this happen to me once before in testing a long time ago, but could never recreate it thereafter.

 

Can you share a syslog?

 

Sure thing, attached...

Image built fine, just had to be patient (read: go do something else!).

syslog.txt

All,

 

Should you wish to recreate your Docker virtual disk image from scratch, but retain your application data to avoid requiring reconfiguration for certain apps, the process is simple.

 

Step 1:  Delete your previous image file

  • Login to your system from the unRAID webGui (http://tower or http://tower.local from Mac by default).
  • Navigate to the Docker tab.
  • Stop the Docker service if it is not already.
  • Click the checkbox next to the Docker image that says Delete Image File.
  • Click the Delete button after clicking the checkbox to delete the image (this may take some time depending on the size of your image).
  • After the file has been deleted, you can simply re-enable the Docker service and the image will be created in the same storage location with the same name.

 

dockerguide-delete.png

 

Step 2:  Redownloading your applications

  • With the Docker service restarted, click Add Container.
  • From the Template drop down, select one of your previously downloaded applications from the top of the list under User defined templates.
  • If none of your volume mappings or port mappings have changed, you can click create immediately to start the download process.
  • Repeat this process for each application you wish to re-download.
  • Toggle the Autostart for each application after it downloads (only if desired).

 

dockerguide-usertemplates.png

 

Step 3:  There is no step 3...

Seriously...  What, you expected more steps?  Nope!  You're done!

I followed these instructions to restore my Docker image file.

My question is I see in all the threads they are saying their docker image is

/mnt/cache/image.img 

After following the 2 steps mine comes up as /mnt/cache/docker.

There is no .img file name.

is this correct and OK ?

  • Author

All,

 

Should you wish to recreate your Docker virtual disk image from scratch, but retain your application data to avoid requiring reconfiguration for certain apps, the process is simple.

 

Step 1:  Delete your previous image file

  • Login to your system from the unRAID webGui (http://tower or http://tower.local from Mac by default).
  • Navigate to the Docker tab.
  • Stop the Docker service if it is not already.
  • Click the checkbox next to the Docker image that says Delete Image File.
  • Click the Delete button after clicking the checkbox to delete the image (this may take some time depending on the size of your image).
  • After the file has been deleted, you can simply re-enable the Docker service and the image will be created in the same storage location with the same name.

 

dockerguide-delete.png

 

Step 2:  Redownloading your applications

  • With the Docker service restarted, click Add Container.
  • From the Template drop down, select one of your previously downloaded applications from the top of the list under User defined templates.
  • If none of your volume mappings or port mappings have changed, you can click create immediately to start the download process.
  • Repeat this process for each application you wish to re-download.
  • Toggle the Autostart for each application after it downloads (only if desired).

 

dockerguide-usertemplates.png

 

Step 3:  There is no step 3...

Seriously...  What, you expected more steps?  Nope!  You're done!

I followed these instructions to restore my Docker image file.

My question is I see in all the threads they are saying their docker image is

/nmt/cache/image.img 

After following the 2 steps mine comes up as /nmt/cache/docker.

There is no .img file name.

is this correct and OK ?

Is it /mnt not /nmt, right?

 

And if you don't put an extension, linux figures it out anyway. Although I'd probably rather have one there.

Yes it is MNT. You must have been quoting as I was editing what I had typed in error.

So you are saying that as part of the 2 step restoration if you want it to say Docker.img one should manually change it ?

  • Author

Yes it is MNT. You must have been quoting as I was editing what I had typed in error.

So you are saying that as part of the 2 step restoration if you want it to say Docker.img one should manually change it ?

Yeah. I guess we should edit the default, eh?

  • 5 weeks later...

I have what may be a rather silly question...

 

I am on v6b12 and my docker image is on a BTRFS cache pool @ /mnt/cache.  Do I...

 

upgrade to b14b and then perform the docker image delete/recreate?

 

or

 

perform the docker image delete/recreate and then upgrade to b14b?

 

John

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...

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.