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
In questa pagina del sito puoi guardare il video online Docker Commit Demo 🐳 | Save Container as Image | Practical Tutorial della durata di 16 minuti 40 seconda in buona qualità , che l'utente ha caricato Shubham gour 18 marzo 2026, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 98 volte e gli è piaciuto like spettatori. Buona visione!