Sign inSign up

slafs/centos7-systemd

By slafs

Updated over 9 years ago

Centos 7 with systemd in unprivileged Docker container

Image
0

10K+

slafs/centos7-systemd repository overview

============================================ 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 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

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: https://registry.hub.docker.com/u/slafs/centos7-systemd/

Tag summary

Content type

Image

Digest

sha256:e605fc3e6

Size

109.9 MB

Last updated

over 9 years ago

docker pull slafs/centos7-systemd