Storage quota per container - overlay2 backed by xfs

Hi,

In my setup, docker daemon is running with overlay2 storage backed by xfs. Following this https://docs.docker.com/engine/reference/commandline/run/#set-storage-driver-options-per-container document I found that I need to mount / with pqouta option to able storage quota per container, so I edited /etc/fstab to include pquota option like /dev/md1 / xfs defaults,pquota 0 0, but I am not able to run a container like below

root@n1:~# docker run -it --storage-opt size=120G fedora /bin/bash
docker: Error response from daemon: --storage-opt is supported only for overlay over xfs with 'pquota' mount option.
See 'docker run --help'.

Do I need to follow any other steps?

1 Like

I had to update /etc/default/grub with the following entry:

GRUB_CMDLINE_LINUX_DEFAULT="rootflags=uquota,pquota"
1 Like

Hi Vishal,

Can I ask your help for finding these files? I’m using docker on Windows 10 with Hyper-V.

Thanks in advance!!