Walker843 Posted July 8, 2023 Share Posted July 8, 2023 Hello, Quite some time ago, I switched from using docker.img to docker folders. Over time, the directory has gotten to be quite large and I assume this to be remnants of the many containers I've installed, tried out, and removed over that period. I'd like to just nuke it and start over, going back to docker.img but I'm not sure what's safe to delete. When I switched to folders, in Docker settings I used the folder /mnt/cache/system/docker instead of the /mnt/user/system/docker/docker that Unraid defaulted to. There are a lot of other directories in the docker folder and I'm not sure it's safe for me to just delete the entire /mnt/cache/system/docker folder using the delete folder option in Docker settings. Folder names like btrfs, network, trust, unraid, volumes, all sound like things that should not be removed. Can I completely remove /mnt/cache/system/docker, or would that be a really bad idea? If it is a bad idea, which folders in there should I remove to completely wipe out the docker folder structure so I can go back to using docker.img? Thanks! Quote Link to comment
Solution JorgeB Posted July 8, 2023 Solution Share Posted July 8, 2023 You can just recreate the image and restore the containers from CA: https://forums.unraid.net/topic/57181-docker-faq/?do=findComment&comment=564309 Quote Link to comment
Walker843 Posted July 8, 2023 Author Share Posted July 8, 2023 6 minutes ago, JorgeB said: You can just recreate the image and restore the containers from CA: https://forums.unraid.net/topic/57181-docker-faq/?do=findComment&comment=564309 So it's ok to have Unraid completely remove /mnt/cache/system/docker and all the various folders that are in it? Quote Link to comment
Walker843 Posted July 8, 2023 Author Share Posted July 8, 2023 Ok, I followed the instructions in the link and deleted the /mnt/cache/system/docker folder. I changed the option to docker.img and found that I was unable to start the docker service after that, which was not totally unexpected given that I had just deleted the entire folder. After a reboot, the docker service started and I was able to reinstall all of my containers. I am back to using a docker.img, and everything appears to be running great! Thank you for the help, @JorgeB! 1 Quote Link to comment
Recommended Posts
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.