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