How to set umask in openshift pod

Solution Verified - Updated -

Issue

  • I'm trying to deploy an image from docker.io on an OpenShift cluster and get the following error message:
Your data directory is readable by other users
Please change the permissions to 0770 so that the directory cannot be listed by other users.
  • We need to fix the filesystem rights, ideally using mount options on the volume mounted.

Environment

  • Red Hat OpenShift Container Platform
    • 3.X

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