Docker Community Forums

Share and learn in the Docker community.

Error building on windows

I am trying to build this docker file: dotnet-docker/Dockerfile at main · dotnet/dotnet-docker (github.com) and am getting the error of

"> [1/4] FROM mcr.microsoft.com/dotnet/aspnet:6.0.1-windowsservercore-ltsc2019@sha256:7042e396d83a9a679cf787da99ef75246a2afeebefc06f0dd1f03ef56bce1057:
------
failed to register layer: Error processing tar file(exit status 1): link /Files/Program Files/common files/Microsoft Shared/Ink/en-US/micaut.dll.mui /Files/Program Files (x86)/common files/Microsoft Shared/ink/en-US/micaut.dll.mui: no such file or directory"

Any advice?

Please, use the </> button to highlight code blocks. I fixed your post show the code properly.

Have you switched to Windows containers on Docker Desktop before you tried to build the image?

Yep, that was it. I had to upgrade from Home to Pro first as well. Thanks