Bug 1373610 - docker :Z volume mounts fail on non-selinux filesystems
Summary: docker :Z volume mounts fail on non-selinux filesystems
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: docker
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-06 17:38 UTC by Dusty Mabe
Modified: 2016-09-14 14:45 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-14 14:27:26 UTC
Type: Bug


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.