36227/dockerfile-install-apache-server-and-start-httpd-service-it
I'm trying to install Apache server and copy an index.html file from the host location to Docker container expose port 80 and start the httpd services. I need a Dockerfile for the same. Thank you
Hey @Kali, That's pretty simple. You could have a Dockerfile something like this:
FROM centos RUN yum install httpd -y COPY index.html /var/www/html/ CMD [“/usr/sbin/httpd”,” -D”,” FOREGROUND”] EXPOSE 80
Hi, In real scenario docker container is used ...READ MORE
Hi@Shashi, You can do this task easily with ...READ MORE
Docker Compose always starts and stops containers ...READ MORE
Hey @Greg, this is a simple dockerfile ...READ MORE
When you use docker-compose down, all the ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
It can work if you try to put ...READ MORE
To solve this problem, I followed advice ...READ MORE
Hey @Nisha, you could write a dockerfile ...READ MORE
Here is a concept that will help ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.