I want to set up a cron job to run a set of commands inside a docker container and then commit the changes to the docker image. I\'m able to run the container as a daemon and ge
Try this if you want an auto commit for all which are running. Put this in a cron or something, if this helps
#!/bin/bash for i in `docker ps|tail -n +2|awk '{print $1}'`; do docker commit -m "commit new change" $i; done