FS#53271 - [docker] systemd 233 breaks docker with cgroups v2

Attached to Project: Community Packages
Opened by Ike Devolder (BlackEagle) - Sunday, 12 March 2017, 13:22 GMT
Last edited by Sébastien Luttringer (seblu) - Friday, 31 March 2017, 23:27 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:

With systemd 233 the unified cgroups is mounted automatically, this breaks docker.

current workaround is to add the following to your kernel commandline: systemd.legacy_systemd_cgroup_controller=yes

Additional info:
* package version(s)
* config and/or log files etc.

Following bug reports with the workaround and proposed patch can be found here:
https://github.com/docker/docker/issues/28109
https://github.com/docker/docker/issues/16238
https://github.com/opencontainers/runc/issues/1175


Steps to reproduce:

update with testing and systemd 233 and get:
container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"cgroup\\\" to rootfs \\\"/var/lib/docker/overlay2/70b60a3304d0a492071d467b381ba6164348069c33004f9e6b439eb706fcc89b/merged\\\" at \\\"/sys/fs/cgroup\\\" caused \\\"no subsystem for mount\\\"\""
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Friday, 31 March 2017, 23:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  docker-1:17.03.1-1-
Comment by xduugu (xduugu) - Sunday, 12 March 2017, 21:09 GMT
This seems to be fixed by https://github.com/opencontainers/runc/pull/1266
Applying this patch[1], which updates runc in docker and adjusting the _RUNC_COMMIT variable should make docker work again.

_RUNC_COMMIT=54296cf40ad8143b62dbcaa1d90e520a2136ddfe

[1] https://github.com/docker/docker/pull/31666.patch
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 27 March 2017, 11:59 GMT
The same breaks rkt right now.
Comment by xduugu (xduugu) - Tuesday, 28 March 2017, 06:46 GMT
v17.03.1-ce [1] includes the fix.

[1] https://github.com/docker/docker/releases/tag/v17.03.1-ce

Loading...