Trying to mount NFS share with selinux context for docker containers results in 'mount.nfs: an incorrect mount option was specified'
Issue
- Need to use NFS volumes with docker
- Trying to mount an NFS share with an SELinux context results in:
mount.nfs: an incorrect mount option was specified
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux Atomic Host
- Trying to mount an NFS share with
-ocontext==system_u:object_r:svirt_sandbox_file_t:s0for docker formatted containers
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
