There is is very limited information regarding create volume with options \"https://docs.docker.com/engine/reference/commandline/volume_create/ \".
I just want to cr
I solved issue for limiting space on docker volumes (by binding dir with -v) using xfs_quota
Location where I needed to store data is a XFS volume mounted with prjquota option
#~ mount
/dev/mapper/centos_ssp--forfiter--07-home on /home type xfs (rw,[..],**prjquota**)
I think that kernel must support it (rootflags=pquota kernel options)
Example from above link:
Enabling project quota on an XFS filesystem (restrict files in log file directories to only using 1 gigabyte of space).
# mount -o prjquota /dev/xvm/var /var
# echo 42:/var/log >> /etc/projects
# echo logfiles:42 >> /etc/projid
# xfs_quota -x -c 'project -s logfiles' /var
# xfs_quota -x -c 'limit -p bhard=1g logfiles' /var
There is also a plugin for docker cirocosta/xfsvol