Accessing files in a buildah mount using a Dockerfile with --mount=type=cache results in a permission denied

Solution Unverified - Updated -


  • All file actions result in permission denied.
  • Examples that work with buildkit all fail


  • Red Hat Enterprise Linux (RHEL) 8.6
  • Red Hat Openshift Container Platform (OCP) 4.10
  • buildah 1.24.2
  • Building with a docker file using cache mount type.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content