0
votes

We are trying to develop Azure windows self-hosted to run Azure pipelines.

However, these agents are deployed on kubernetes. And we want these agents to be able to use docker for build/push operations. meaning we need docker inside docker.

Is it possible to install docker on these windows self-hosted agents ?

1
What do mean by the windows self-hosted agents? Azure VM? Or Devops agent? - Charles Xu
self-hosted agent pools can be either linux or windows, so I'm trying to install docker into a self-hosted agent (windows). and as I said these agents (linux and windows) are deployed as services on kubernetes - Ta Abd
You could install docker on the agent machine directly, do you get any issue during installation? - Cece Dong - MSFT
@CeceDong-MSFT Yes installing docker cause problems specially I want to give non-root user access to docker socket ? - Ta Abd
How about creating the docker group and adding your user as this documentation mentioned? - container: ubuntu image: ubuntu:16.04 options: '--group-add docker' (github.com/microsoft/azure-pipelines-agent/issues/…). - Cece Dong - MSFT

1 Answers

1
votes

You need to set up a self-hosted agent in Azure Pipelines to run inside a Windows Server Core (for Windows hosts), or Ubuntu container (for Linux hosts) with Docker. Detailed steps you may refer to the following link:

https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/docker?view=azure-devops