Skip to content

Notes on resolving permissions problems

Grey Christoforo edited this page Mar 15, 2016 · 2 revisions

The permissions of the pristine container are setup correctly.
I've noticed they often get messed up when the user mounts volumes into the container which contain files/folders with incorrect permissions/ownership. If you're getting permissions related errors when mounting volumes into the container, try one or both of the following fixes:

  1. Run my permissions fixer script:
    After you've started the container (however you start it) issue
docker exec -it oc sh -c 'set-oc-perms runtime'
  1. Fix SELinux labeling issues:
    Append :Z to your volume mounts from the command line. So if your volume mount previously looked like this: -v ~/sslCert:/root/sslKeys, then it becomes this: -v ~/sslCert:/root/sslKeys:Z