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

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.



Docker should be installed in the system


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
Connect to twitter
Subscribe my Channel
Connect over Linkedin
Share this on Social Media

About the Author

Keshav Khatore
Keshav Khatore

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- || LinkedIn-

Please SignUp/Login to comment...

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