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!
root@ip-172-31-28-155:/home/ubuntu# docker run -itd centos
root@ip-172-31-28-155:/home/ubuntu# docker attach 6b75851431b4
[root@6b75851431b4 /]# yum install epel-release
[root@6b75851431b4 /]# yum install ntp
[root@6b75851431b4 /]# yum install httpd
root@ip-172-31-28-155:/home/ubuntu# docker commit -a"sujith" -m"centos_git" 6b75851431b4 srm-centos
sha256:d3afd249fdd0902cb87aa3ab9f2f7710014190d730d4bd7ceca5527e4e75cdd6
root@ip-172-31-28-155:/home/ubuntu# docker run -itd srm-centos
e08aa7826a7c9798caf23d5f461ab2ed022978e67ac25ec7d7f97e90f7a44d40