Bug 1259342

Summary: docker: Fail to start if selinux is enabled and overlayfs is being used as graph driver
Product: Red Hat Enterprise Linux 7 Reporter: Vivek Goyal <vgoyal>
Component: dockerAssignee: Sally <somalley>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: dwalsh, lsm5, lsu, sghosh, walters
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-31 23:22:29 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1295567    

Description Vivek Goyal 2015-09-02 12:23:10 UTC
Description of problem:

Currently overlayfs does not work with selinux. By default selinux is enabled and if user chooses to use overlay as graph driver, there will be issues.

Modify docker so that it detects this situation during start and fails with appropriate error message.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Daniel Walsh 2015-09-02 15:16:46 UTC
Sally we already do this for BTRFS, you should just search the code and make the same change.

Comment 3 Sally 2015-09-02 19:56:08 UTC
submitted https://github.com/docker/docker/pull/16025

Comment 4 Vivek Goyal 2015-09-03 13:18:25 UTC
sally, has it been merged into docker we ship in rhel? MODIFIED flag means that patch has been committed in the source tree of redhat rpm.

Comment 5 Vivek Goyal 2015-09-03 13:19:06 UTC
Or rather, an rpm build has been done and rpm is available for testing. Then we will call it MODIFIED.

Comment 6 Sally 2015-09-03 13:32:16 UTC
Sorry for the confusion!  Dan also pointed out my misuse of 'MODIFIED'..
Now I know :)

Comment 7 Sally 2015-09-03 20:35:12 UTC
https://github.com/docker/docker/pull/16025 merged

Comment 8 Daniel Walsh 2015-09-28 18:41:47 UTC
Fixed in docker-1.9

Comment 10 Luwen Su 2016-02-03 08:49:29 UTC
In docker-1.9.1-15.el7.x86_64

# docker daemon --storage-driver=overlay
INFO[0000] Firewalld running: false                     
INFO[0000] Default bridge (docker0) is assigned with an IP address 172.17.0.1/16. Daemon option --bip can be used to set a preferred IP address 

# docker daemon --selinux-enabled --storage-driver=overlay
FATA[0000] Error starting daemon: SELinux is not supported with the overlay graph driver

Comment 12 errata-xmlrpc 2016-03-31 23:22:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0536.html