Docker Community Forums

Share and learn in the Docker community.

Docker commit should retain container data in volumes too

(Devopsnetapponaws) #1

Currently docker commit will have the docker container created as a docker image.
But it will be very useful if all the data at that point on mounted volumes can be pushed along with it too.

(Think) #2

is it an option for you to hack this by copying your interesting files from the mount into the container before commiting.

(Prabhushan) #3


Any update on this?

(Sam) #4

i don’t understand this topic

docker commit takes a running container and saves it, at the current state, to a new IMAGE
data external to the container (on volumes) is NOT saved, (well, because its EXTERNAL).

the new IMAGE, like all images, can be used to start a new container.