Our build agent is running Podman 3.4.2, and each terminal session has a global alias that just replaces docker with podman, thus the command docker —version returns podman version 3.4.2 as a consequence.
The purpose is to employ podman in an Azure DevOps pipeline for the Docker@2 task:
steps:
- task: Docker@2
displayName: Build and push an image to container registry
inputs:
command: buildAndPush
repository: aspnet-web-mhi
dockerfile: $(dockerfilePath)
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
Is it possible to make that replacement operate without too much trouble?
If possible, I'd avoid writing everything myself and utilise podman instead of docker and publish it to a registry.