Public | Automated Build

Last pushed: a year ago
Short Description
Centos 7 with systemd in unprivileged Docker container
Full Description


Centos 7 with systemd on unprivileged Docker

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 (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:

  • when installing postgres you should comment out OOMScoreAdjust option from .service file.
  • When installing httpd (apache) comment out PrivateTmp option from /usr/lib/systemd/system/httpd.service.

Keep in mind that there might be other caveats.

Docker automated build

You can find a Docker automated build here:

Docker Pull Command
Source Repository