Centos 7 with systemd in unprivileged Docker container
10K+
This is a base Docker image for CentOS 7 with installed systemd
(instead of fakesystemd). It can be ran without -- privileged flag.
As of 2014-11-17 00:00 UTC this actually works ;)
For reference about creating/running this image see:
This image is based on work in https://github.com/maci0/docker-systemd-unpriv (without sshd)
Build it like this::
docker build --rm=true -t slafs/centos7-systemd .
Then run it like this::
docker run -d -v /sys/fs/cgroup:/sys/fs/cgroup:ro slafs/centos7-systemd /usr/lib/systemd/systemd
Currently I've noticed some issues after installing various services.
For example:
postgres you should comment out OOMScoreAdjust option from .service file.httpd (apache) comment out PrivateTmp option from /usr/lib/systemd/system/httpd.service.Keep in mind that there might be other caveats.
You can find a Docker automated build here: https://registry.hub.docker.com/u/slafs/centos7-systemd/
Content type
Image
Digest
sha256:e605fc3e6…
Size
109.9 MB
Last updated
over 9 years ago
docker pull slafs/centos7-systemd