Bug 1373610

Summary: docker :Z volume mounts fail on non-selinux filesystems
Product: [Fedora] Fedora Reporter: Dusty Mabe <dustymabe>
Component: dockerAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: adimania, admiller, amurdaca, dwalsh, ichavero, jcajka, jchaloup, lsm5, marianne, miminar, nalin, riek, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-14 14:27:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dusty Mabe 2016-09-06 17:38:06 UTC
Description of problem:

When attempting to volume mount a directory on a filesystem that doesn't support selinux (i.e. fuse filesystems like sshfs) the docker daemon will error. One could argue that this is desired behavior but to work around it for every project that uses ":Z" a user would either have to remove ":Z" or move the files to a filesystem that does support selinux, which is not a good user experience. According to dwalsh the "ENOSUP should be handled, either ignored or perhaps logged."


Version-Release number of selected component (if applicable):
docker-1.10.3-26.git1ecb834.fc24.x86_64


How reproducible:
Always

Steps to Reproduce:
$ docker run -it --rm -v /proc/:/tmp/proc:Z centos:7 bash
docker: Error response from daemon: operation not supported.

Comment 1 Daniel Walsh 2016-09-14 14:27:08 UTC
I think we should leave this as an error.  For now, unless it becomes more of a problem.

Comment 2 Daniel Walsh 2016-09-14 14:45:01 UTC
Opened a pull request to better document the error.
https://github.com/opencontainers/runc/pull/1046