nestybox / nestybox/sysbox

docker run --storage-opt=size=<x> fails within sysbox container with XFS /var/lib/docker

Open
#474 11 comments 0 reactions 1 assignee View on GitHub

@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:

  1. Mount an XFS filesystem at /var/lib/docker on 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)
  1. Launch a sysbox container e.g. docker run --runtime=sysbox-runc --mount=type=volume,dst=/var/lib/docker and launchdockerd within the container. Confirm that, within the sysbox container, /var/lib/docker is indeed XFS (as it should be, as it will be located within /var/lib/docker/volumes on the host):
# mount -v | grep docker
/dev/sdb on /var/lib/docker type xfs (rw,noatime,attr2,inode64,logbufs=8,logbsize=32k,prjquota)
  1. Now, within the same sysbox container, running docker run --rm -it --storage-opt=size=<x> debian bash will 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.