Skip to content

Docker build fails to mount a single file #8114

@RocketJas

Description

@RocketJas

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions