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).

  • How to enter bash of an ubuntu docker container?
  • How to configure Debian SSHD for remote debugging in a Docker container?
  • docker command attach running slow
  • Difference between Docker and OpenVZ
  • In docker-compose how to create an alias / link to localhost?
  • hhvm hack lang error 500 instead error report
  • Thanks for helping,

  • Static webpage on Nginx Docker Container Missing CSS
  • Sbt-native-packager & AutoPlugin & Mappings in Docker
  • Searching the Google Container Registry
  • Best practice using Dockerfile with docker-compose and vcs
  • automatically start /etc/init script in IBM Bluemix container
  • How to get hostPort mapped inside Docker Container in AWS ECS
  • 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.