If you, like me, manage a self-hosted agent pool in Azure DevOps and have found that you’re wanting for more capacity, then Docker is possibly the solution for you. By running your Azure Pipelines Agent in Docker, you can leverage the resources available to you without introducing new virtual machines and increasing the running & maintenance cost of your agent pool. Using Docker you can run multiple instances of your build agent on a single machine and leverage this to extend your CI capacity.
Let’s quickly work through the Dockerfile that eventually catered for all our use cases.
I am a .NET developer and DevOps advocate for my organisation. I am South African to the core. I love solving problems and learning new technologies.