Skip to content

VirtioFS does not work with rpmbuild and volume mounts #6511

@jquick

Description

@jquick
  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: 87C1A1E5-7D32-4ACD-9C94-4B1FD6774DF4/20221010132406

Expected behavior

When running rpmbuild I expect the command to run successfully even when mounting out source locations.

Actual behavior

When VirtioFS is enabled the command fails with:

error: unpacking of archive failed on file /root/rpmbuild/SOURCES/0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch;634419ab: cpio: open failed - No such file or directory

When VirtioFS is disabled it works fine

Information

  • macOS Version: 13.0 Beta (22A5365d)
  • Intel chip or Apple chip: arm64
  • Docker Desktop Version: 4.12.0

Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check

Starting diagnostics

[PASS] DD0027: is there available disk space on the host?
[PASS] DD0028: is there available VM disk space?
[PASS] DD0031: does the Docker API work?
[PASS] DD0004: is the Docker engine running?
[PASS] DD0011: are the LinuxKit services running?
[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0001: is the application running?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0017: can a VM be started?
[PASS] DD0015: are the binary symlinks installed?
[PASS] DD0003: is the Docker CLI working?
[PASS] DD0013: is the $PATH ok?
[PASS] DD0007: is the backend responding?
[PASS] DD0014: are the backend processes running?
[PASS] DD0008: is the native API responding?
[PASS] DD0009: is the vpnkit API responding?
[PASS] DD0010: is the Docker API proxy responding?
[PASS] DD0012: is the VM networking working?
[PASS] DD0032: do Docker networks overlap with host IPs?
[SKIP] DD0030: is the image access management authorized?
[PASS] DD0019: is the com.docker.vmnetd process responding?
[PASS] DD0033: does the host have Internet access?

Steps to reproduce the behavior

Enable VirtioFS in docker properties

Dockerfile

FROM amazonlinux:2022

RUN yum install -y wget git yum-utils rpm-build
RUN mkdir -p /root/rpmbuild
RUN wget https://rpms.remirepo.net/SRPMS/redis-6.2.7-1.remi.src.rpm -P /root/rpmbuild/SRPMS
RUN yum-builddep -y /root/rpmbuild/SRPMS/redis-6.2.7-1.remi.src.rpm

Commands to run

docker build . -t "virtiofs:test" 
docker run -v "$(pwd)"/SOURCES:/root/rpmbuild/SOURCES/ virtiofs:test rpmbuild --rebuild /root/rpmbuild/SRPMS/redis-6.2.7-1.remi.src.rpm

If you disable VirtioFS it will complete without issues.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions