docker commit

I have a set of containers running in a VM (via docker_container module). I would like to provision these containers and then save what was changed. What is the best approach to do this? I’m using docker_container with option ‘with_sequence’ to create a dynamically named set of containers