Limit Container Storage

Hello Everyone,

As the --storage-opt feature isn’t working as expected, there is still more work to be done on that. Can anyone help me find another way to limit container storage so that it doesn’t consume the entire host storage?

You can find the storage drivers here:

And what drivers support container size limit:

https://docs.docker.com/engine/reference/commandline/run/#storage-opt

  • I used zfs for LXC containers and virtual machines, but zfs requires a dedicated partition or a virtual disk.
  • devicemapper was the default on CentOS until they started to support overlay2, but that is still an option. I’m not sure about performance, but overlay2 is probably not the default for nothing.
  • And there is btrfs too which I don’t know at all.