- 1 year ago
Run Linux containers in an Azure DevOps Windows hosted build agent
Comment
1 / 1
Azure DevOps Windows hosted build agents are specifically designed for running Windows-based build and release processes. They do not support running Linux containers natively.
However, you can use a self-hosted agent on a Windows machine to run Linux containers. Here are the general steps to set it up:
- Set up a Windows machine that meets the system requirements for running Linux containers.
- Install Docker for Windows on the machine.
- Configure Docker to run Linux containers by enabling the Linux container mode.
- Install and configure the Azure Pipelines self-hosted agent on the Windows machine.
- Configure your Azure Pipelines pipeline to use the self-hosted agent.
With this setup, you'll be able to run Linux containers as part of your build and release processes using Azure Pipelines.
Please note that running Linux containers on a Windows machine might have limitations and compatibility issues compared to running them on a native Linux environment.