'Can you use custom docker image for Azure Pipelines when using the generic Git connection?

When using the GitHub connection with Azure DevOps pipelines I see that you can specify a docker image in your azure-pipelines.yml file (vmImage: option)

But when using generic git connection you only have a dropdown with just some options: agent specification dropdown for azure pipelines

Is there any way to add custom docker images to be used? Since I would need different NodeJS version for different pipelines and here, ubuntu 18.04 image for example only has v10



Solution 1:[1]

The option to choose a docker container it's only the YAML pipelines that are not supported in the other Git connection.

You can use a Self Hosted agent and run it in docker containers, so you need to configure a few images in your environment and connect them to Azure DevOps.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Shayki Abramczyk