Docker folder under zfs


Recommended Posts

(not sure if this is the right forum)
Hello :)

Im just curious, when using docker folder (not image) under zfs, it creates a lot of datasets and it seems to automatic take snapshots ether when dockers update or gets added, why does this happen? Is it by design?
It looks to be more datasets than I have containers.

  • Like 1
Link to comment
On 7/4/2023 at 1:06 PM, isvein said:

So it's more of a bug than a feature then, thanks 🙂

 

I would say it isn't bug, it's feature ;)


Docker ZFS storage driver manual page describes how is Docker using ZFS datasets snapshots and clones to build image hierarchy. I didn't tried it myself yet (because afaik there is no clean migration path) but I would kind of expect results what you are describing. Out of curiosity, how many datasets (and for how many containers) it created?

  • Like 1
Link to comment
8 hours ago, bambi73 said:

 

I would say it isn't bug, it's feature ;)


Docker ZFS storage driver manual page describes how is Docker using ZFS datasets snapshots and clones to build image hierarchy. I didn't tried it myself yet (because afaik there is no clean migration path) but I would kind of expect results what you are describing. Out of curiosity, how many datasets (and for how many containers) it created?

I dont remember how many datasets, switched back to btrfs image for the docker.
But I have 24 dockers and it was way more datasets, maybe double

Link to comment
12 hours ago, isvein said:

I dont remember how many datasets, switched back to btrfs image for the docker.
But I have 24 dockers and it was way more datasets, maybe double

 

Ok, thanks.

Btw how did you migrated your containers? Or did you recreated them all?

Link to comment
7 hours ago, bambi73 said:

 

Ok, thanks.

Btw how did you migrated your containers? Or did you recreated them all?

Just delete the docker folder after stopping docker and created a new image :)
Then used the Appstore to just redownload all previous installed dockers with latest saved config, since no important data is saved in the docker images

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