Docker containers are ephemeral, and that means changes to a running container are not preserved. In general, it is advisable to continue using Dockerfiles to generate images, as we want to ensure a certain state exists for all new containers based on an image. However, what happens when you need to modify a running Docker container and preserve those changes?

#docker #docker commit #docker images

Committing Docker Container Changes to New Images
1.40 GEEK