[英]How to deploy/run a Docker image from a build server
Having built,run and executed tests against a docker image on a CI build server(TeamCity2017), how should we deploy it to further machines? 在CI构建服务器(TeamCity2017)上针对docker映像构建,运行和执行测试之后,我们应如何将其部署到其他计算机上?
How, for example, if we push it to a Docker registry, would our CI server instruct the target machine to pull and run the image? 例如,如果我们将其推送到Docker注册表,我们的CI服务器将如何指示目标计算机拉并运行映像? Ie where it an application we would use Octopus for this deployment step, but our Octopus server doesn't support Docker deployments as yet. 即在哪个应用程序中,我们将使用Octopus进行此部署步骤,但我们的Octopus服务器尚不支持Docker部署。
Any guidance appreciated. 任何指导表示赞赏。
Michael McD. 迈克尔·麦克(Michael McD)。
I would use Octo to deploy your images onto target machines. 我将使用Octo将映像部署到目标计算机上。 You'd need to use powershell scripts to have your machines run the images. 您需要使用powershell脚本来使您的计算机运行图像。 Or you can use something like Rancher, which is a docker swarm manager. 或者,您可以使用Rancher之类的东西,这是一个Docker群管理器。 There is no feasible way to have TeamCity deploy your images. 没有可行的方法让TeamCity部署映像。 The software simply isn't built to be able to do deploys. 该软件根本不是为了能够进行部署而构建的。
The Rancher solution would not be automated, at least not to my knowledge. Rancher解决方案将不会自动化,至少据我所知。 You would have to trigger upgrades when a new image is pushed to the docker registry. 当将新映像推送到docker注册表时,您将必须触发升级。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.