Tag: 节拍器

如何在DC操作系统中强制执行docker镜像?

对于docker编排,我们正在使用mesos和chronos来安排作业运行。 现在,我们放弃了计时器,并试图通过DCO设置,使用mesos和节拍器。 在chronos中,我可以通过它的ymlconfiguration激活强制拖动docker镜像: container: type: docker image: registry.example.com:5001/the-app:production forcePullImage: true 现在,在使用节拍器和介面的DC / OS中,我也希望它强制它总是从registry中取出最新的图像,而不是依赖于它的caching版本。 然而,docker的JSONconfiguration似乎有限: "docker": { "image": "registry.example.com:5001/the-app:production" }, 如果我将新图像推送到production标签,旧图像将用于mesos上的作业。 为了这个原因,我尝试join这个标志: "docker": { "image": "registry.example.com:5001/my-app:staging", "forcePullImage": true }, 但在请求中,我得到一个错误: http PUT example.com/service/metronome/v1/jobs/the-app < app-config.json HTTP/1.1 422 Unprocessable Entity Connection: keep-alive Content-Length: 147 Content-Type: application/json Date: Fri, 12 May 2017 09:57:55 GMT Server: openresty/1.9.15.1 { "details": […]