docker commit Explained
What docker commit does, with an example.
Published November 9, 2026
docker commit creates a new image from a container's current state, including any changes made since it started.
Key points
- Part of the standard Docker CLI used for building, running, and managing containers
Example
docker commit my-container myapp:snapshot