July 4, 20233 yr (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.
July 4, 20233 yr Community Expert That's a known zfs issue, you can use an xfs or btrfs image on zfs to avoid that.
July 4, 20233 yr Author 50 minutes ago, JorgeB said: That's a known zfs issue, you can use an xfs or btrfs image on zfs to avoid that. So it's more of a bug than a feature then, thanks 🙂
July 7, 20232 yr 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?
July 8, 20232 yr Author 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
July 8, 20232 yr 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?
July 9, 20232 yr Author 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
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.