Backing up Docker Continers in the event of a boot drive failer

Where are the settings and configuration files for docker containers saved?

I am currently backing up configuration settings for TrueNAS Scale monthly and I have a replication task backing up my RAIDZ2 pool to a USB HDD.

I don’t see an apps pool in datasets in any pool.

Am I missing something?

you have to choose a pool to store your apps data and on that pool is a hidden dataset called .ix-apps. And because it’s hidden it’s excluded from snapshots and backup tasks…

3 Likes

sudo zfs list | grep ix-apps will show them (in shell, not in GUI).

1 Like

If you use this approach, you can have your volumes and (compose) stacks under visible datasets. Thus, you would be able to easily back them up.

However, AIUI, you won’t be able to use this approach for the apps from the market.

I can see sudo zfs list | grep ix-apps in shell. It is also being replicated on my USB HDD.

Does this mean as long as my ZPool survives my Docker Apps will work in the event of me having to reinstall TrueNAS on a new boot drive and pick up any configuration settings?

Another question, if my Zpool fails completely, how do I go about transferring my USB HDD replica including ix-apps back into a new ZFS volume?

Once done will TrueNAS pick up the apps and configurations automatically?

Probably yes.

Have you created a pool from the USB HDD to make it a replication target? If so, just replicating it back to the new pool should work ok. Mb with some twist.

1 Like

The worst thing happened on Saturday morning when I had a power cut that tripped the RCD. When I reset the RCD the TrueNAS web interface could not be accessed and after reboot was not available accordingly via a display connected to the NAS. What should I have done to get it back?
My final solution after hours of experimenting, swapping out network switches, and back again, rebooting and updating OPNsense firewall, then re-image, an old install of 24.04 (incase the boot volume had been corrupted. If that didn’t work, I would have done a fresh install) and suddenly TrueNAS detected a web interface IP address (not sure how). I was then able to update to 25.04 and it picked up all my containers and settings from the Zpool which was a relief, as this was the nightmare of having re-configure containers I wanted to avoid.
As a bonus my Zpool was intact with no errors :blush:

1 Like