Failed to access NFS PV for the container with "Permission denied" error.

Solution Verified - Updated -

Issue

  • Getting Permission denied error while trying to access the NFS PV attached to a container which has init or systemd enabled.
~ $ ls /target
ls: can't open '/target': Permission denied

Environment

  • Red Hat OpenShift Container Platform [RHOCP]
    • 4.X
  • Containers which have init or systemd enabled.

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