我对Docker相当陌生,但是现在我已经为我的各种项目构build了一些图像,从而能够“手动”地完成任务。 Docker Hub具有很好的自动化构buildfunction,但价格昂贵。 如何复制该function?
我没有足够的声誉来评论你的问题,因为这更像是评论。
如果您的存储库(私有/公共)位于bitbucket或github上,那么自动化的构buildfunction就是开箱即用的。 更多在这里
Use of automated builds requires that you have an account on Docker Hub and on the hosted repository provider (GitHub or Bitbucket). If you have previously linked your Github or Bitbucket account, you must have chosen the Public and Private connection type. To view your current connection settings, from your Docker Hub account choose Profile > Settings > Linked Accounts & Services.
如果你不想朝那个方向走,并且在内部,那么到目前为止,还有几个select,其中一个就是使用内部dockerregistry,并select一些CI引擎。
例如jenkins(Jenkins)做自动build筑(轮询和修build)和docker登记处来进行控制。 我们一直在做这个,不错。
但是,您将遇到一些缺点,如缺lessUI,searchfunction等。