dogukancagatay / docker-azp-agent-dind

Azure Devops Agent Docker image with Docker-in-Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure Devops Pipelines Agent Docker-in-Docker Image

Docker-in-Docker integrated Azure Devops Pipelines Agent image for self-hosted agents. It is based on dcagatay/ubuntu-dind image. This image uses s6-overlay to run multiple services inside Docker container.

Image @DockerHub: dcagatay/azp-agent-dind.

Tags

Images are updated with new versions of Azure Devops Pipeline agent are released, see tags tab for the up to date tag list. Or use latest.

Usage

As Base Image

You can and should use it as a base image for your self-hosted agent and create your build environment.

Running the Image

docker run -it --privileged dcagatay/azp-agent-dind:latest /bin/bash

Environment Variables

  • DOCKER_EXTRA_OPTS: Used to give arguments to dockerd command. Details can be found on its reference. Default: --log-level=error --experimental

Environment variables specific to Azure Devops Pipelines Agent must be set, details are in its docs.

Build

You can build your own images specifying following build arguments.

  • AGENT_VERSION: Azure Devops Agent version. Default 2.185.1.

This image uses dcagatay/ubuntu-dind:18.04 as its base image, if you require more detailed build options, check its docs.

WARNING

The --privileged argument has security implications.

About

Azure Devops Agent Docker image with Docker-in-Docker

License:Apache License 2.0


Languages

Language:Shell 56.3%Language:Dockerfile 43.7%