Adding Quota option for ZFS (#1135)

* Adding Quota option

Try to explain how you can use quota on ZFS as it was implemented/discussed in #3804.

* Requested changes from @johndmulhausen
This commit is contained in:
Andreas Steinel 2017-01-25 00:41:52 +01:00 committed by John Mulhausen
parent bb81ccb937
commit 781a582fff
1 changed files with 12 additions and 0 deletions

View File

@ -320,3 +320,15 @@ performance. This is because they bypass the storage driver and do not incur
any of the potential overheads introduced by thin provisioning and
copy-on-write. For this reason, you should place heavy write workloads on data
volumes.
## Limiting your container's writable storage quota
If you want to use quota on a per docker image/zfs dataset basis, you can use
the `--storage-opt` option:
--storage-opt size=256M
which limits the space your container can write/change (implemented with the
ZFS attribute `available`). This means that if you have e.g. a database docker
image of 256 MB and you use the aforementioned option, you end up with a
container of size 512 MB and 256 MB free.