Docker containers using vfs when PVE uses ZFS #811
Replies: 3 comments 4 replies
-
At one time, I had any Docker install with ZFS use |
Beta Was this translation helpful? Give feedback.
-
@tteck I think this is related as I'm also using zfs It is 'using' 1.3GB but is actually ~14GB on disk. I don't think it's just weird reporting either, it's reporting that much disk used in proxmox as well.
EDIT: Switching it over to a 'directory' storage backing on ext4 made the disk usage behave as expected. |
Beta Was this translation helpful? Give feedback.
-
Just a quick update @tteck, this should now be solved as of One thing I noticed was that there seems to be a check (in It would probably also be a good idea to implement a check for whether the ZFS pool has the feature enabled - I can provide more info if you need a direction to look in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I just found out about this from troubleshooting a Nextcloud install. It looks like when docker is installed in an LXC on Proxmox with ZFS, the Docker Storage Driver (view with
docker info
) defaults to vfs.According to docker, "The vfs storage driver is intended for testing purposes, and for situations where no copy-on-write filesystem can be used. Performance of this storage driver is poor, and is not generally recommended for production use."
https://docs.docker.com/storage/storagedriver/select-storage-driver/
Over on reddit someone was helping me with Nextcloud and he worked through the vfs issue, but it's a rather involved process, which made me think of TTeck! Here's what he had to do, and the issue was setting up the filesystem in a way that allowed for the use of the overlay2 storage driver and maintaining the ability to take snapshots and migrate.
https://www.reddit.com/r/Proxmox/comments/zahqfa/comment/iyo3303/
Your scripted docker LXC, but do you think it would be worthwhile to set it up on the preferred (by docker) filesystem? There is also the zfs storage drive in docker, though it's newer and less documented.
Beta Was this translation helpful? Give feedback.
All reactions