本文介绍了泊坞窗自动提交和推的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我试图安装一个GUI应用程序在泊坞窗用完全相同的配置使用不同的计算机上。该容器是工作,但我一直都犯并手动修改。

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

感谢您的帮助,
弗洛

Thanks for helping,Flo

推荐答案

我不知道一个工具,它会自动的,但你可以写一个。泊坞窗发出事件时的容器停止,所以你可以有订阅了这些事件的过程(或cron作业,偶尔调查他们的),当它检测到密闭容器中(也许有自己的命名约定?),它会自动可以泊坞窗提交和标记。

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.

该事件通过泊坞窗事件()和泊坞远程REST API

这篇关于泊坞窗自动提交和推的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 14:52