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 in Docker by Cerci
59 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 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
• 6,900 points
53 views
+2 votes
4 answers

How to install packages inside a docker Ubuntu image?

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

answered Apr 24 in Docker by Vismaya
2,168 views
0 votes
1 answer

How to install Docker on CentOS?

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

answered Feb 27 in Docker by Avinash
17 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

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

Here is very basic explanation for image ...READ MORE

answered Sep 4, 2018 in Docker by Damon Salvatore
• 5,490 points
401 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 in Docker by Sushith
43 views