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,329 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,121 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,127 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,097 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,659 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
958 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