Docker image to run and build Docker images in Azure Pipelines container jobs. The image contains Docker CLI and Docker Compose to access Docker engine on the agent.
This image can be used to run and build Docker images in Azure Pipelines container jobs.
To use the image in an Azure Pipelines Container Job, add one of the following example tasks and use it with the container
property.
The following example shows the container used for a deployment step which shows Docker CLI version:
- stage: deploy
jobs:
- deployment: runDotNet
container: swissgrc/azure-pipelines-dockercli:latest
environment: smarthotel-dev
strategy:
runOnce:
deploy:
steps:
- bash: |
docker --version
- Debian 12 as base image
- Docker CLI
- Docker Compose
- BuildX
Tag | Description | Size |
---|---|---|
latest | Latest stable release (from main branch) |
|
unstable | Latest unstable release (from develop branch) |
|
x.y.z | Image for a specific version of Docker CLI |