Search code examples
azure-devopsazure-pipelinesagent

Is Azure DevOps hosted agent a docker container?


The azure agent is usually used as follows, it is named as pool and with a VM image title

pool:
  vmImage: 'ubuntu-16.04'

Can a hosted agent in azure DevOps service be considered as a container in VM managed by azure DevOps service?


Solution

  • Can a hosted agent in azure DevOps service be considered as a container in VM managed by azure DevOps service?

    Restrictly to say, no, you can not.

    The key words of vmImage not point to a container, it just an image of a virtual machine, a copy of the VM. This copy contain an OS, data files, and some built-in applications we pre-configured to facilitate user use.

    If you want to do some Container jobs along with Hosted agents, here the suggestion of Eldho is available. Note: As of today, the container jobs only support YAML pipeline.

    Or, you can get our containerized agents image from Docker hub. But this is a self agent type.