3

I am using Gitlab CI in windows as base image.

image: mcr.microsoft.com/dotnet/sdk:6.0.202-windowsservercore-ltsc2019
..................................
app_build:
  stage: build
  only: 
    - Dev
  image: node:latest
  tags:
    - my-tag
  script:
    - |
      cd Receipt

      npm install

      npm run build --prod

WARNING: Failed to pull image with policy "always": no matching manifest for windows/amd64 10.0.17763 in the manifest list entries (manager.go:237:1s) ERROR: Job failed: failed to pull image "node:latest" with specified policies [always]: no matching manifest for windows/amd64 10.0.17763 in the manifest list entries (manager.go:237:1s)

Imran Qadir Baksh - Baloch
  • 32,612
  • 68
  • 179
  • 322

1 Answers1

1

The official NodeJS docker image only publishes Linux containers. There are no available images for Windows OS in any architecture.

You will have to either use a different image built for Windows or enable Linux container virtualization on your host ("switch to linux containers") -- but keep in mind you won't be able to pull Windows images while the daemon is configured for Linux containers.

See also this answer for additional context.

sytech
  • 29,298
  • 3
  • 45
  • 86