azurelinux
azurelinux copied to clipboard
Docker build fails to mount a single file
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:
- Ensure you are running on a mariner OS
- Clone repo
- Set the Environment Variable
export DOCKER_BUILDKIT=1 - From the root directory run
docker build -t test_dockerfile_mariner -f test.dockerfile .