Hey everyone! I’m trying something new for the month of August…a common theme for the articles each week.
Some of you may have noticed over the last couple articles I have mentioned switching to Docker volumes instead of blind mounts. The time has finally come to reveal what I have been working on…
Migrating all local, persistent Docker files from local storage running on the server the container is on to a NFS share running on TrueNAS Scale. By removing the dependance for the local server storage, it add a few advantages that I think everyone will like:
- Ease of Migration – moving your container files from one server to another, be it for a version upgrade or to clean up your environment, has never been an easy or straight forward task. Once you move your files to a NFS volume, all you have to do to move it to a new server is stop the container, create the volume map on the new server, copy your compose/stack config to the new server, start the container. No need to copy anything because you are using the same storage.
- Simplify Backup – instead of having to backup every container server, the servers become disposable and all you need to backup is the one TrueNAS server.
- Less Storage for Container Server – by centralizing your files, each container server needs less space to function, the only storage requirements are the server OS which is usually a very small footprint. This also is huge for Single-Board Computers like the Raspberry Pi and LattePanda. No need to purchase a massive SD card or hard drive only for it to go bad and you lose everything, just get a 16GB card and if it dies…oh well, just buy another one for $10.
I’m sure there are even more situations that I’m not even thinking about where this could be useful (if you think of any, comment below and I’ll add it to the list).
This sounds awesome…so where is the information?
This whole concept isn’t going to be easy to setup or go over, it took me a few weeks to actually figure out how to get everything working. At the same time, I’m still developing parts of the concept and will need to go through the writing process to finalize everything.
With that in mind…I’m going to publish 4 articles, one each week over the month, detailing everything you need to do in order to get this working. As a sneak peek (and links to the articles if you are reading this after they are all published) here is the list of articles: