Docker Commit Demo 🐳 | Save Container as Image | Practical Tutorial

Veröffentlicht am: 18 März 2026
auf dem Kanal: Shubham gour
98
like

Join this channel to get access to perks:
   / @shubhamgourtech  

#theshubhamgour

This video provides a practical, hands-on demonstration of the docker commit command, showing how to create a new Docker image from a running container after making modifications.

Key takeaways from the demonstration:

Understanding Docker Layers: The video begins by explaining how Docker stores images and containers as layers (0:43) and shows the specific directory path in the filesystem where these layers reside (1:14).
Setting up the Environment: The creator pulls an Nginx image, runs it as a container named web_app, and configures port mapping between the host and container (2:34-3:09).
Modifying the Container: After accessing the container via docker exec (4:58), the creator modifies the default Nginx index.html file (5:24-6:16). This change demonstrates that the container's state has evolved.
Saving Changes with docker commit: To persist these modifications, the creator uses the docker commit command (7:01) to save the current container state as a new image, web_app:v2.
Validation: The creator confirms the new image works by deleting the old container and base image, then launching a new container from the web_app:v2 image (8:23-9:26). The updated content is successfully reflected at the new port (9:54).
Important Note: While docker commit is useful for testing and debugging (10:39), the creator emphasizes that it should generally be avoided in production environments.
#Docker #DockerCommit #DevOps #DockerTutorial #Containerization #DockerHandsOn #DevOpsForBeginners #cloudcomputing

🎥 Watch all Docker episodes here :    • Docker Mastery: Beginner to Advanced with ...  

🎥 Watch all trivy episodes here :    • Trivy Security Scanner Complete Course | D...  

🎥 Watch all Jenkins episodes here:    • Learn Jenkins Step by Step  


For all updates:
Let's Connect on LinkedIn:   / theshubhamgour  
Follow me instagram:   / theshubhamgour  
Follow me Twitter:   / theshubhamgour  


Auf dieser Seite können Sie das Online-Video Docker Commit Demo 🐳 | Save Container as Image | Practical Tutorial mit der Dauer 16 minuten 40 sekunde in guter Qualität ansehen, das der Benutzer Shubham gour 18 März 2026 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 98 Mal angesehen und es wurde von like den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!