Azure devops docker build agent with build tools

docker newbie here.

I try to create a docker image with visual studio build tools and connect it as a self-hosted agent in my Azure Devops environment.

Basically combining these two guides:

Run a self-hosted agent in Docker

Install Build Tools into a container

I can get them to run individually. I have tried to build one of them, and then base the other image on the other one, like changing this line in the build-tools image:

FROM buildagent:latest
When I run it, then it just goes to “exited”, and I get no logs. Any help would be appreciated :slight_smile:

This post was flagged by the community and is temporarily hidden.