| Summary: | Systemd in Docker container need too much priviledge | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Antoine TRAN <antoine.tran> | |
| Component: | systemd | Assignee: | systemd-maint | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | qe-baseos-daemons | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 7.2 | CC: | antoine.tran, bblaskov, jsynacek, systemd-maint-list | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1563025 (view as bug list) | Environment: | ||
| Last Closed: | 2017-08-03 07:49:42 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: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 1563025 | |||
|
Description
Antoine TRAN
2016-11-07 16:51:54 UTC
A bug report has been written previously in https://github.com/CentOS/sig-cloud-instance-images/issues/54 . Then someone sent me here. I would guess that systemd is trying to mount /run, because it wants to have it on tmpfs. Try to use "-v /run" docker run -ti -v /run -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 local/c7-systemd-httpd gives [!!!!!!] Failed to mount API filesystems, freezing. Deleting the container gives Error response from daemon: devmapper: Unknown device 3ba40886392a40ad357a0f930f47814d95db573e2eaa809ac2d3335038c10d65 This latter message does not appear without -v /run. With -v /run:/run, or --tmpfs /run --tmpfs /var --tmpfs /var/run, I have the same error. Why is this a bug in systemd? Although systemd works in normal Linux distribution, it does not work in restricted environment (like docker). This is no longer reproducible with docker-1.12.6-48.git0fdc778.el7.x86_64 and systemd-219-42.el7.x86_64. Fixed in RHEL-7.4. |