
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


![]()
