Install the HTTP package via docker file into centos base image

0 votes
I wanted to install the HTTP package via docker file into centos base image. Can I please get the dockerfile?
Jan 22, 2019 in Docker by Cerci
1,341 views

1 answer to this question.

0 votes

Hey @Cerci, you can something like this:

#HTTP web Image 
# define base image path
FROM centos
# Provide author name 
MAINTAINER you@gmail.com 

RUN yum install –y httpd
CMD [“echo”, ” Web Image created”]
answered Jan 22, 2019 by Kira

Related Questions In Docker

0 votes
2 answers

How can I inspect the file system of a failed `docker build

Failed command is a build that has ...READ MORE

answered Aug 6, 2018 in Docker by Nilesh
• 7,060 points
3,131 views
+4 votes
4 answers

How to install packages inside a docker Ubuntu image?

Execute the update and the install command ...READ MORE

answered Apr 24, 2019 in Docker by Vismaya
47,188 views
0 votes
1 answer

How to install Docker on CentOS?

Hey @Dishant, follow these steps to install ...READ MORE

answered Feb 27, 2019 in Docker by Avinash
1,104 views
+2 votes
1 answer
0 votes
2 answers
0 votes
3 answers

What is the difference between a Docker image and a container?

Images are read-only templates that contain a ...READ MORE

answered Aug 10, 2020 in Docker by Vishal
• 260 points
6,667 views
0 votes
1 answer

What are the pre-requisites to install docker?

Docker installation on Ubuntu requires the following: One ...READ MORE

answered Feb 21, 2019 in Docker by Sushith
973 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP