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.

The Dockerfile

Let’s quickly work through the Dockerfile that eventually catered for all our use cases.

The initial…

Simon Headley

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.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store