I'm trying to create a Dockerfile for a dot net application (C#).
This application prints a string in the console when I run "OPCConsole.exe" from the terminal.
I am trying to build the Dockerfile in such a way that once the docker run is done this string is printed in the terminal.
My Dockerfile is:
# env .NET on DockerHub
# FROM mcr.microsoft.com/dotnet/sdk:6.0
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
# copy all files in the folder
COPY . ./
# ENTRYPOINT ["./bin/Debug"]
# CMD ["OPCConsole.exe"]
RUN /bin/Debug
RUN OPCConsole.exe
Now I have this error:
failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:3b60fb291ae58ea993c257c4da44423605b2d797c935b5d0ce1149ccccc87d6b: not found
Thanks for help!
I suspect your are pulling mcr.microsoft.com/dotnet/framework/sdk:4.8
from a linux machine.
If yes, as explainedhere , those images are for Windows only.
Infact, pulling it from my linux laptot I get:
> docker pull mcr.microsoft.com/dotnet/framework/sdk:4.8
4.8: Pulling from dotnet/framework/sdk
no matching manifest for linux/amd64 in the manifest list entries
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.