docker run --storage-opt=size=<x> fails within sysbox container with XFS /var/lib/docker
Open
@ctalledo is already working on this.
Since Feb 10, 2022.
bug
- Dominant language
- Shell
- Stars
- 3.9k
- Forks
- 230
- Avg merge
- 7h 48m
- Merged PRs (30d)
- 3
Description
On a host with an XFS filesystem mounted at /var/lib/docker, docker run --storage-opt=size=<x> succeeds on containers (runc and sysbox-runc) launched from the host, but fails on containers launched from within a sysbox-runc container with a volume mounted /var/lib/docker, running dockerd.
Steps to reproduce:
- Mount an XFS filesystem at
/var/lib/dockeron the host:
# mount -v | grep /var/lib/docker
/dev/sdb on /var/lib/docker type xfs (rw,noatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota)
- Launch a sysbox container e.g.
docker run --runtime=sysbox-runc --mount=type=volume,dst=/var/lib/dockerand launchdockerdwithin the container. Confirm that, within the sysbox container,/var/lib/dockeris indeed XFS (as it should be, as it will be located within/var/lib/docker/volumeson the host):
# mount -v | grep docker
/dev/sdb on /var/lib/docker type xfs (rw,noatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota)
- Now, within the same sysbox container, running
docker run --rm -it --storage-opt=size=<x> debian bashwill fail:
# docker run --rm -it --storage-opt=size=2G debian bash
docker: Error response from daemon: --storage-opt is supported only for overlay over xfs with 'pquota' mount option.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.