docker run --name custom_centos -itd centos
docker attach custom_centos
yum update
yum install git
yum install ntp
yum install httpd
docker commit -a"Sooraj Soman" -m"cent-up-git-ntp-httpd" custom_centos cent-up-git-ntp-httpd
Code language: JavaScript (javascript)