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
37 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
39 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
1,393 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
14 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,250 points
214 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
35 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.