Wanted to test Centos 8 so created docker image to test it.
This is my Dockerfile
FROM centos:latest
RUN yum -y install httpd; yum clean all; systemctl enable httpd.service
EXPOSE 80
CMD ["/usr/sbin/init"]
Build image
docker build --rm -t local/c8-systemd-httpd .