How to build self-hosted devops agent in Docker locally

  azure-devops, docker, visual-studio-code

I have followed these steps and when I run PS C:dockeragent> docker build -t dockeragent:latest .

I get

[+] Building 0.8s (3/3) FINISHED
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 31B                                                                                0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 2B                                                                                    0.0s
 => ERROR [internal] load metadata for mcr.microsoft.com/windows/servercore:ltsc2019                               0.7s
------
 > [internal] load metadata for mcr.microsoft.com/windows/servercore:ltsc2019:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:etcetc: not found

I am using VSC with Docker extention on my local computer. How can I build this image?

Source: Docker Questions

LEAVE A COMMENT