简体   繁体   English

Docker 容器中的 Azure DevOps 自托管代理

[英]Azure DevOps self hosted agents in Docker container

I am following the tutorial located here .我正在关注位于此处的教程。 I am able to get a self hosted agent running in a Docker container.我能够在 Docker 容器中运行自托管代理。 After the agent is running, I am able to run jobs on it in a pipeline only while the container is running.代理运行后,我只能在容器运行时在管道中运行作业。 I would like to keep this docker container build agent running as a service, so I don't have to start it up for each time I am executing a pipeline.我想让这个 docker 容器构建代理作为服务运行,所以我不必在每次执行管道时都启动它。 Any advice on how to configure a docker container build agent to keep running continuously would be helpful.有关如何配置 docker 容器构建代理以保持连续运行的任何建议都会有所帮助。

I am able to run jobs on it in a pipeline only while the container is running.只有在容器运行时,我才能在管道中运行作业。

Agent in Docker should be 'run as a service' by default, you need to make sure the container is running, otherwise, the agent will not run.默认情况下,Docker 中的代理应该是“作为服务运行”,您需要确保容器正在运行,否则代理将无法运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure DevOps 和自托管代理之间的网络费用 - Network charges between Azure devops and self hosted agents 自动向 Azure DevOps 自托管代理添加功能 - automate adding capabilities to Azure DevOps self-hosted agents Azure DevOps 托管代理:如何构建到容器中,然后提取构建工件 - Azure DevOps Hosted Agents: How to build into a container, then extract the build artifacts Azure DevOps 管道 - 如何通过自托管代理在 docker 容器中执行整个模板阶段 - Azure DevOps pipelines - how to execute a whole template stage in a docker container by a self-hosted agent Azure DevOps 自托管代理 - 如何复制云托管代理? - Azure DevOps Self-Hosted Agent - How to replicate cloud-hosted agents? Azure DevOps 自托管容器实例中的代理-.network 规则 - Azure DevOps self-hosted agent in Container instance - network rules azure 使用自定义映像开发自托管容器代理 - azure devops self hosted container agent with custom image Azure DevOps 自托管代理 VMSS:无法找到可执行文件:“解压缩” - Azure DevOps Self Hosted Agents VMSS: Unable to locate executable file: 'unzip' Azure DevOps - 托管构建代理不可用 - Azure DevOps - Hosted Build Agents not available Azure DevOps托管代理-向代理添加工具(PS模块) - Azure DevOps Hosted Agents - Add Tool (PS Module) to agent
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM