I am learning the docker. One task is with me.
Install httpd on cents 8 base image only.
I have created the image using centos base image then created the container, but I found httpd is not installing at all using the RUN commands. Tried multiple things but not getting installing in centos 8.
When I had created centos image/container and then using interactive session tried same so it was working but if same commands I kept in Dockerfile so that is not working.
Can any one please help me,
below is my Dockerfile
RUN yum update -y && yum install httpd -y
COPY index.html /var/www/html/
CMD ["/usr/sbin/httpd", “D”, “FOREGROUND”]