azurelinux icon indicating copy to clipboard operation
azurelinux copied to clipboard

Docker build fails to mount a single file

Open RocketJas opened this issue 1 year ago • 3 comments

There is an issue with the version of docker on the latest AzureLinux container image

Docker build failing to mount single file via bind When running docker build (with DOCKER_BUILDKIT=1) on the mariner image, the RUN stage fails when attempting to mount a single file --mount=type=bind with the error

executor failed running [/bin/bash -euxc bash tmp/test_mount.sh]: failed to mount /var/lib/docker/tmp/buildkit-mount3000888503: [{Type:bind Source:/proc/self/fd/25 Options:[rbind ro]}]: not a directory

To Reproduce Steps to reproduce the behavior:

  1. Ensure you are running on a mariner OS
  2. Clone repo
  3. Set the Environment Variable export DOCKER_BUILDKIT=1
  4. From the root directory run docker build -t test_dockerfile_mariner -f test.dockerfile .

RocketJas avatar Feb 27 '24 15:02 RocketJas