How to Mount Volume in Podman Container with SELinux Enabled

Solution Verified - Updated -

Issue

  • When attempting to mount a host volume into a Podman container on a system where SELinux is enabled, the container may fail to start, or access to the volume may be denied due to SELinux policy restrictions.

Environment

  • Red Hat Enterprise Linux 7 / 8 / 9 / 10
  • Podman

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