Docker Community Forums

Share and learn in the Docker community.

Storage quota per container - overlay2 backed by xfs

docker

(Vishal Rana) #1

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?


(Vishal Rana) #2

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

GRUB_CMDLINE_LINUX_DEFAULT="rootflags=uquota,pquota"

(Corndah) #3

Hi Vishal,

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

Thanks in advance!!