Convert Docker from folder to img?


Go to solution Solved by JorgeB,

Recommended Posts

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!

Link to comment

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!

  • Like 1
Link to comment

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.