

Yum -y -setopt=tsflags=nodocs install & \

RUN rpmkeys -import file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 & \ # * $HTTPD_LOG_TO_VOLUME (optional) - When set, httpd will log into /var/log/httpd24 # * /var/log/httpd24 - Storage for logs when $HTTPD_LOG_TO_VOLUME is set # * /opt/rh/httpd24/root/var/www - Datastore for httpd If you need CentOS, that's on Docker Hub too:įrom the source you can see that Red Hat themselves aren't running it using systemd either: FROM centos:centos7 And unless you need CentOS, you can use one of the official images from Apache: While you can run a service using systemd in a container, I agree with xenoid's comment that you shouldn't. I'm running it in Cygwin, Docker version 18.03.1-ce, build 9ee9f40 (Docker for Windows).Ĭould you please say if there are any ways to get a working centos7+systemd container with this configuration? I have also tried with -privileged but every time I get this: /]# systemctl statusįailed to get D-Bus connection: Operation not permitted
