Sign inSign up

sirkkalap/oraclelinux-systemd

By sirkkalap

Updated over 9 years ago

I needed a systemd enabled oraclelinux. This is just for that.

Image
0

10K+

sirkkalap/oraclelinux-systemd repository overview

Official CentOS systemd docker container

The container was created as a base container for systemd based services. There is a sample containter that makes use of this image (https://github.com/xrowgmbh/docker-systemd-example-httpd).

Sample httpd container

Here we show you how we can create a sample httpd container.

Frist create a Dockerfile and setup the required service or services. Systemd can launch multiple services.

FROM centos/systemd

MAINTAINER "Your Name" <[email protected]>

RUN yum -y install httpd; yum clean all; systemctl enable httpd.service

EXPOSE 80

CMD ["/usr/sbin/init"]

Then build it.

docker build --rm --no-cache -t httpd .

Launch it.

docker run --privileged --name httpd -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 -d  httpd

Finally use it.

Tag summary

Content type

Image

Digest

Size

79.4 MB

Last updated

over 9 years ago

docker pull sirkkalap/oraclelinux-systemd