Articles → DOCKER → Docker Commit CommandDocker Commit CommandIn this article, we will discuss the docker commit command.Purpose The docker commit command is used to create the snapshot of an image in the container.This command is useful when you want to debug the image without changing the actual image.Prerequisite Before reading this article, ensure Docker is installed on your machine.Syntax The docker commit command has the following syntax: -docker commit <container_name> <new Image Name>Example In this example, we have the following container: -Click to EnlargeTo create a snapshot, execute the following command: -Click to EnlargeThe new image is created.Click to EnlargePosted By - Karan Gupta Posted On - Saturday, March 25, 2023 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
docker commit <container_name> <new Image Name>
Query/Feedback