Bug 1566680

Summary: docker run systemd: Failed to create cgroup: EPERM
Product: Red Hat Enterprise Linux 7 Reporter: Ed Santiago <santiago>
Component: dockerAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: amurdaca, lsm5
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-13 11:58:47 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 Flags
log from docker-systemd failure none

Description Ed Santiago 2018-04-12 19:00:09 UTC
Created attachment 1421026 [details]
log from docker-systemd failure

# docker run -t registry.access.redhat.com/rhel7/rhel:latest /usr/sbin/init
    [  OK  ] Reached target Encrypted Volumes.
    Failed to create cgroup /system.slice/docker-<sha>.scope/system.slice/systemd-journald.service: Permission denied

Lots and lots of these. See attachment for full log.

RPMs of note:


This is RHEL 7.4 with latest updates; I haven't seen it fail on RHEL 7.5 (!)

Under the previous 7.4 kernel (kernel-3.10.0-693.el7.x86_64), before rebooting, the error was quicker:

    Set hostname to <7381be6f2c57>.
    Initializing machine ID from random generator.
    Failed to create root cgroup hierarchy: Permission denied
    Failed to allocate manager object: Permission denied
    [!!!!!!] Failed to allocate manager object, freezing.

AFAICT RHEL 7.4 only, not 7.5

Comment 2 Daniel Walsh 2018-04-13 04:59:26 UTC
Is the container_manage_cgroup boolean turned on?

setsebool -P container_manage_cgroup 1

Comment 3 Ed Santiago 2018-04-13 11:58:47 UTC
Sigh, that was it. Sorry for the noise.