简体   繁体   English

如何从构建服务器部署/运行Docker映像

[英]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.

相关问题 如何使用 github 操作将 docker 图像从 dockerhub 部署到服务器 - How to deploy a docker image from dockerhub to a server with github actions 如何在服务器上自动部署和运行 docker 镜像? - How to automatically deploy and run docker images on server? 如何在 Cloud Run 上自动部署 Cloud Build 构建的 docker 镜像 - How to deploy the built docker image built by Cloud Build on Cloud Run automatically EB:从Docker Hub自动部署新的Docker镜像 - EB: Automatically deploy new Docker image build from Docker Hub 构建我自己的 docker 映像并将其部署到生产服务器? - Build and deploy my own docker image to the production server? 如何在dockerfile中包含本地语言服务器并从中构建docker映像? - How to include a local language server in a dockerfile and build a docker image from it? 如何在CircleCI 2.0的部署步骤中的构建步骤中使用Docker映像? - How to use docker image from build step in deploy step in CircleCI 2.0? 如何将gitlab构建为可与docker运行的映像文件? - How build gitlab as an image file to run with docker? 如何在本地运行此 mysql docker 映像构建 - How to run this mysql docker image build locally 如何从奇异图像构建 docker 图像 - how to build docker image from singularity image
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM