-
Notifications
You must be signed in to change notification settings - Fork 30
Core 884.0.0 - Enabling SELinux in prevents Docker containers from running #1015
Comments
@mjg59 looks like we don't provide selinux module for docker. did I miss something or not? I tried to compile own docker.pp and relates to coreos/coreos-overlay#1632 , moby/moby#15498 , moby/moby#15832, sallyom/docker@04329e0, coreos/docker@37fb0ab and probably this "Remove LXC" commit moby/moby@3b5fac4 |
@kayrus Docker is using the same selinux policy as rkt, and it's provided via the lxc policy |
@mjg59 Probably Docker <= 1.8.3 did. Why does new 1.9.1 fail? |
Docker isn't labelling the overlay directories. I've got a slightly hacky patch to do this, I'll clean it up tomorrow. |
Should be fixed in the next Alpha. This turned out to be a combination of problems:
The reason this worked in previous releases is that Docker was being built without selinux support, so wasn't transitioning to a confined context on container startup. |
FYI, 921.0.0 will include the kernel and policy fixes but by mistake we missed the labeling fix in coreos/docker#10 but that will come soon. |
This was fixed in 926.0.0. |
When starting a new instance with this cloud-config:
Running a simple Docker container fails:
And produces the following AVC messages:
The text was updated successfully, but these errors were encountered: