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

  • Can't pull image from docker registry when docker is pointing to a swarm
  • How to run a python-flask container on Mac OS?
  • JHipster on Docker issue
  • Docker-machine create: Error with pre-create check: “Hyper-v commands have to be run as an Administrator”
  • simulate Daemon-set in kubernetes with using Deployment
  • my daemon docker container doesnt stay running
  • Thanks for helping,
    Flo

  • Getting Docker Container Id in Makefile to use in another command
  • Multiple WordPress sites with one shared DB using Docker
  • How to restart a process inside a container / Restarting PhpStorm using original restart.py
  • docker commit running container
  • Docker run java app
  • Can not pull docker image
  • 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.