microsoft / Windows-Containers

Welcome to our Windows Containers GitHub community! Ask questions, report bugs, and suggest features -- let's work together.
MIT License
410 stars 64 forks source link

Docker build issue with server content: COPY --from=...server:10.0.20348.2529 C:/Windows/SystemResources/mfplat.dll.mun... failed to copy files: failed to copy file: open ...Windows\SystemResources\mfplat.dll.mun: Access is denied. #536

Open doctorpangloss opened 6 days ago

doctorpangloss commented 6 days ago

Describe the bug

Using the server files should work.

Errors like these will sometimes manifest as

failed to copy files: failed to copy directory: unexpected EOF

when one of the source/destinations raises an access denied error.

Minimal reproduction:

COPY --from=mcr.microsoft.com/windows/server:10.0.20348.2529 C:/Windows/SystemResources/mfplat.dll.mun C:/Windows/SystemResources/mfplat.dll.mun failed to copy files: failed to copy file: open \\?\Volume{19443b0d-864a-4f84-9f5d-2db512ad3877}\Windows\SystemResources\mfplat.dll.mun: Access is denied.

To Reproduce

Dockerfile:

FROM mcr.microsoft.com/windows/servercore:10.0.20348.2529 as final
USER ContainerAdministrator
COPY --from=mcr.microsoft.com/windows/server:10.0.20348.2529 C:/Windows/SystemResources/mfplat.dll.mun C:/Windows/SystemResources/mfplat.dll.mun

Expected behavior I should be able to copy this file from the server image.

Configuration:

Server: Docker Desktop 4.32.0 (157355) Engine: Version: 27.0.3 API version: 1.46 (minimum version 1.24) Go version: go1.21.11 Git commit: 662f78c Built: Sat Jun 29 00:02:13 2024 OS/Arch: windows/amd64 Experimental: false

github-actions[bot] commented 6 days ago

Thank you for creating an Issue. Please note that GitHub is not an official channel for Microsoft support requests. To create an official support request, please open a ticket here. Microsoft and the GitHub Community strive to provide a best effort in answering questions and supporting Issues on GitHub.