I am trying to build a Docker image based on windows:1909 on Azure DevOps and publish it to an Azure registry. I have set up a basic pipeline from the template provided by DevOps, changed the builder VM to windows-latest, but when I try to run it, I get the following:
Step 1/43 : FROM mcr.microsoft.com/windows:1909
1909: Pulling from windows
no matching manifest for windows/amd64 10.0.17763 in the manifest list entries
My pipeline is as follows:
trigger:
- main
resources:
- repo: self
variables:
  # Container registry service connection established during pipeline creation
  dockerRegistryServiceConnection: '<redacted>'
  imageRepository: '<redacted>'
  containerRegistry: '<redacted>'
  dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile'
  tag: '$(Build.BuildId)'
  
  # Agent VM image name
  vmImageName: 'windows-latest'
stages:
- stage: Build
  displayName: Build and push stage
  jobs:  
  - job: Build
    displayName: Build
    pool:
      vmImage: $(vmImageName)
    steps:
    - task: Docker@2
      displayName: Build and push an image to container registry
      inputs:
        command: buildAndPush
        repository: $(imageRepository)
        dockerfile: $(dockerfilePath)
        containerRegistry: $(dockerRegistryServiceConnection)
        tags: |
          $(tag)
Most advice I found online was to "set Docker to run Windows containers" but this is not something I can do on Azure -- or can I?