March 3Mar 3 Unraid v. 7.2.4I switched the Docker data-root from directory to xfs vDisk. In doing so Docker created the docker-xfs.img file. As I originally had the data-root set to directory, docker created individual folders for all of the pulled layers and the containers.My question is this: Can I delete all of the old files that are not not being used because docker created the .img file and now writes to this? If so, which files can I delete or all of them with the exception of the .img file?The reasoning for this is because it takes up approximately 20gb of space on the cache.Here is the latest diagnostics:olivejuice-diagnostics-20260303-1459.zipThank you! Edited March 3Mar 3 by Olivejuice
March 4Mar 4 Solution Yes, you should be able to delete them.If yoh want, you can "test that" by renaming the folder / moving the contents somewhere else, rebooting/restarting docker and seeing if anything changes for you.But given you're using the image method, you should be able to just delete that folder as it's not being used anymore anyway.
March 4Mar 4 Author 13 hours ago, andrebrait said:Yes, you should be able to delete them.If yoh want, you can "test that" by renaming the folder / moving the contents somewhere else, rebooting/restarting docker and seeing if anything changes for you.But given you're using the image method, you should be able to just delete that folder as it's not being used anymore anyway.Thank you, that was my assumption as well but I didn't want to pull the trigger without getting some feedback first.What is your opinion on the Docker data-root being vDisk or directory? It seems as if the Unraid documentation recommends using vDisk but I have heard others recommend directory....thoughts?
March 6Mar 6 Author On 3/4/2026 at 11:38 PM, JorgeB said:Recommend using an image, I have seen strange issues with folders many times.On 3/3/2026 at 10:46 PM, andrebrait said:Yes, you should be able to delete them.If yoh want, you can "test that" by renaming the folder / moving the contents somewhere else, rebooting/restarting docker and seeing if anything changes for you.But given you're using the image method, you should be able to just delete that folder as it's not being used anymore anyway.Just wanted to follow up and let you know that I was able to delete everything in the /system/docker folder with the exception of the .img file and everything is working the way it should. Thank you for your input, it was very much appreciated!
March 6Mar 6 Author On 3/4/2026 at 11:38 PM, JorgeB said:Recommend using an image, I have seen strange issues with folders many times.Thank you
March 27Mar 27 @JorgeB Jumping in on this thread after a search for answers.1) What, if any, are the implications of switching from btrfs vdisk to xfs vdisk. Feel free to include your personal opinion of which is the better option. Thanks
March 27Mar 27 It should be very similar. I prefer BTRFS because it's easier to see if there are issues, since it checksums the data and will detect and show any corruptions.
March 27Mar 27 3 minutes ago, JorgeB said:It should be very similar. I prefer BTRFS because it's easier to see if there are issues, since it checksums the data and will detect and show any corruptions.Excellent, that's what I currently have set.. I saw some recent posts where people argue that xfs vdisk is better.Thank you!
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.