Windows-Containers icon indicating copy to clipboard operation
Windows-Containers copied to clipboard

The system cannot find the file specified.: unknown with buildx/buildkit

Open lisanna-dettwyler opened this issue 9 months ago • 1 comments

Describe the bug Screenshot 2024-05-21 130740 Building a simple powershell example is failing with docker buildx build using the new buildkit support for windows containers.

The system cannot find the file specified.: unknown

To Reproduce https://github.com/lisanna-dettwyler/win-buildx-error/blob/master/.github/workflows/build.yml

Setup steps for the GitHub runner taken from https://github.com/microsoft/Windows-Containers/issues/34#issuecomment-2058774850

Expected behavior The step should succeed as it does in the companion job built without buildkit: https://github.com/lisanna-dettwyler/win-buildx-error/actions/runs/9178335051/job/25237996047

Configuration:

  • Edition: Windows Server 2022 (windows-latest tag in GitHub Actions)
  • Base Image being used: mcr.microsoft.com/dotnet/framework/runtime:4.8
  • Container engine: containerd
  • Container Engine version: 1.7.15

Additional context https://github.com/lisanna-dettwyler/win-buildx-error

lisanna-dettwyler avatar May 21 '24 17:05 lisanna-dettwyler