Create one Image which have base as centos and with git – ntp – httpd.

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

root@ip-172-31-28-155:/home/ubuntu# docker ps | grep raju
ad134985b915   centos         "/bin/bash"          9 seconds ago        Up 7 seconds                  rajucentoscontaniner

root@ip-172-31-28-155:/home/ubuntu# docker exec -it ad134985b915 /bin/sh
yum install git
yum install httpd
sh-4.4# read escape sequence
root@ip-172-31-28-155:/home/ubuntu# docker commit -a "Raju" -m "cent-os-commit-raju" ad134985b915 centos-withgitandhttpd