Bug 1268059
Summary: | docker exec setting the wrong cgroups | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Daniel Riek <riek> |
Component: | docker | Assignee: | Mrunal Patel <mpatel> |
Status: | CLOSED ERRATA | QA Contact: | atomic-bugs <atomic-bugs> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | ajia, dwalsh, lsm5, lsu, mpatel |
Target Milestone: | rc | Keywords: | 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-05-12 15:16:45 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: | 1303656 |
Description
Daniel Riek
2015-10-01 17:22:21 UTC
Mrunal can you take a look at this. docker exec should be putting the process inside of the pid 1 cgroup. Found the issue. Not all paths are set correctly during exec. I am working on a fix. https://github.com/opencontainers/runc/pull/315 opened to correct the systemd name cgroup. Leave assigned until it gets merged and we can identify a docker rpm that the fix will be in. https://github.com/opencontainers/runc/pull/315 has been merged. Next step will be to get it into docker as part of runc update. Fixed in docker-1.9 (In reply to Daniel Riek from comment #0) > Starting via: > # docker run --rm -p 80:80 -v /sys/fs/cgroup:/sys/fs/cgroup --init=systemd > --name my-httpd-atomic llunved/httpd-atomic There is no '--init' option in docker-1.9.1-16.el7.x86_64. # docker run --rm -p 80:80 -v /sys/fs/cgroup:/sys/fs/cgroup --init=systemd --name my-httpd-atomic llunved/httpd-atomic flag provided but not defined: --init See 'docker run --help'. Correct we have dropped --init from docker-1.9 and future. We will have a new way of doing this in docker-1.10 that is less onerous to upstream. Taking out the needinfo as Dan Walsh provided the information. Since lack of implementation of --init in docker client, i'd like to verified this via ONLY checking those patch whether is in the current git branch(top git commit) In docker-1.9.1-38.el7.x86_64, move to verified 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/RHSA-2016-1034.html |