https://github.com/swissgrc/docker-azure-pipelines-dockercli
🐳 Docker image for running and building Docker images in an Azure Pipelines container job
https://github.com/swissgrc/docker-azure-pipelines-dockercli
azure-devops azure-pipelines docker hacktoberfest
Last synced: 4 months ago
JSON representation
🐳 Docker image for running and building Docker images in an Azure Pipelines container job
- Host: GitHub
- URL: https://github.com/swissgrc/docker-azure-pipelines-dockercli
- Owner: swissgrc
- License: mit
- Created: 2023-05-22T06:42:22.000Z (about 2 years ago)
- Default Branch: develop
- Last Pushed: 2025-02-27T06:55:52.000Z (4 months ago)
- Last Synced: 2025-02-27T09:19:09.381Z (4 months ago)
- Topics: azure-devops, azure-pipelines, docker, hacktoberfest
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/swissgrc/azure-pipelines-dockercli
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Docker image for running and building Docker images in an Azure Pipelines container job
[](https://github.com/swissgrc/docker-azure-pipelines-dockercli/blob/main/LICENSE) [](https://github.com/swissgrc/docker-azure-pipelines-dockercli/actions/workflows/publish.yml) [](https://sonarcloud.io/summary/new_code?id=swissgrc_docker-azure-pipelines-dockercli) [](https://hub.docker.com/r/swissgrc/azure-pipelines-dockercli) [](https://hub.docker.com/r/swissgrc/azure-pipelines-dockercli)
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.## Usage
This image can be used to run and build Docker images in [Azure Pipelines container jobs].
### Azure Pipelines Container Job
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:
```yaml
- stage: deploy
jobs:
- deployment: runDotNet
container: swissgrc/azure-pipelines-dockercli:latest
environment: smarthotel-dev
strategy:
runOnce:
deploy:
steps:
- bash: |
docker --version
```## Included Software
- Debian 12 as base image
- Docker CLI
- Docker Compose
- BuildX## Tags
| 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 | |[Azure Pipelines container jobs]: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases