Create one Image which have base as centos and with git – ntp – httpd
Created an image docker run –name sree -itd centosb50dcbcba771a111bf7c0b9a08eb4f14acfb83c666b2d5f8afbc13a7afc0748eroot@ip-172-31-28-155:/home/ubuntu# docker ps|grep sreeb50dcbcba771 centos “/bin/bash” 15 seconds ago Up 14 se conds sreeroot@ip-172-31-28-155:/home/ubuntu# docker attach sreeyum install git -yyum install httpddocker commit -a”sreerekha” -m”ce-git-httpd -sree” sree ce-git-httpd-sree docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEce-git-httpd-sree latest b50885a6b058 19 seconds ago 346MB docker run –name rekha -itd ce-git-httpd-sree0d9262edc8ec86f142dc3fcb0b78cd1b923f9003ca022aa4a68b258bf6b0efc9root@ip-172-31-28-155:/home/ubuntu# docker ps|grep rekha0d9262edc8ec ce-git-httpd-sree “/bin/bash” 17 seconds ago Up 16 seconds rekha docker exec rekha git –versiongit version 2.27.0
Read more