Creating HTTPD Container#
Create the following Dockerfile:
FROM fedora29
RUN dnf -y install httpd; dnf all; systemctl enable httpd.service
EXPOSE 80
CMD [“/usr/sbin/init”]
To build the image:
$ docker build -t httpd .
To run the container:
$ docker run --privileged -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 httpd