Please enable Javascript for better experience...
 
How to Commit Changes and Create Docker Images
By Keshav Khatore | May 28, 2020 | In Articles | Total Views [ 1359 ]
Taged In
(0 Like)
Rate

Docker is a tool that can help make your company more agile and flexible. With containers, you can quickly roll out services based on pre-built or custom images. Even with this level of flexibility, there are many ways you can make Docker containers even more efficient. One such method is creating template images that will be used as the base for your containers.

Perquisite

Docker

Docker should be installed in the system

Internet

Internet connectivity should be there

Centos image

A system is having a centos image

Step 1 Deploy the Container

Add the IMAGE ID to the command that will create a container based on the image:

Step 2 Modify the Image

In the Docker container, the command like wget and ifconfig for the IP cannot be run

To run this command we have to install some tools like Net-tools and wget

Step 3 

Now you will see the command like ifconfig and wget will run after installation these tools in Docker Container

Now Wget tools will be installed

Step 4 Committing the image

Time to commit your changes to create a new image based on our additions. To do this, we need to once again use the container ID.

Step 5 Docker  Images

To see the recent images of docker  Type Command

Docker Images


Thanks for visiting here. Share this article if you found it useful.
Like Facebook Page https://www.facebook.com/VMwareInsight/
Connect to twitter https://twitter.com/imPranayK
Subscribe my Channel https://www.youtube.com/vmwareinsight
Connect over Linkedin https://in.linkedin.com/in/impranayk
Share this on Social Media

About the Author

Keshav Khatore
Keshav Khatore
Member VMwareInsight.com

Public profile: user/profile/99905478


Follow me

facebook linkedin twitter G+ VMTN youtube

I am Keshav Khatore student of Lovely Professional University, Phagwara, Punjab, India, currently pursuing Masters In Computer Application.I am a Member of Redhat Linux, the biggest network on the planet and it's a glad thing for me to be a piece of such extraordinary and lofty community. I expert in Linux and have certification Red-hat Certified System Administration . For Contact- keshavmah27@gmail.com || LinkedIn- https://www.linkedin.com/in/keshav-khatore/

 
Please SignUp/Login to comment...

Or comment as anonymous...
* Name
* Email ID
Comment
 
Sponsors
 
 
 
 
 
Facebook Likes