docker automatically commit and push

I’m trying to setup a GUI application in docker to use it on different computers with the exact same configuration. The container is working but I always have to commit and push the changes manually.

Is there a way to automatically commit and push the changes of the docker container after the container was stopped (by closing the application).

  • Docker instruction in Java Maven project to skip tests
  • Docker - Rhel image chcon operation not permitted
  • Can't reach Asp.Net Core inside Docker
  • managing a hierarchy of docker images
  • My boot2docker installation seems to not be working. What am I doing wrong?
  • Chronos in Docker - jobs stuck as 'queued'
  • Thanks for helping,

  • Kubernetes PullImageError using Docker Hub with a private image
  • How to get a docker image to run an executable
  • How to install multiple packages using apt-get via a Dockerfile
  • How to remote debug python code in a Docker Container with VS Code
  • docker: structure needs cleaning
  • Logstash with fluent input codec not working
  • One Solution collect form web for “docker automatically commit and push”

    I don’t know of a tool which does that automatically, but you could write one. Docker emits events when containers stop, so you could have a process that subscribes to those events (or a cron job that occasionally polls for them) and when it detects a closed container (maybe with your own naming convention?), it could automatically docker commit and tag.

    The events are available via docker events (docs), and the Docker Remote REST API.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.