docker-images icon indicating copy to clipboard operation
docker-images copied to clipboard

Volumes not correctly mounted when SELinux in enforcing mode (default for Oracle Linux 8)

Open jmalbarran opened this issue 4 years ago • 1 comments

Trying to execute the install process in Oracle Linux 8 Cloud Developer in OCI. Oracle Linux 8, by default, has SELinux enables (enforcing mode). With this, the mounted volumes fails with "Access Denied" error.

As workaround

  • Disable SELinux Open the /etc/selinux/config file (in some systems, the /etc/sysconfig/selinux file). Change the line SELINUX=enforcing to SELINUX=permissive. Save and close the file. Reboot your system
  • Or edit the scripts to add the Z option in volume mount (e.g. here)

jmalbarran avatar Aug 07 '21 20:08 jmalbarran

@AmedeeBulle, maybe you have some recommendations/insights here?

gvenzl avatar Aug 19 '22 17:08 gvenzl