C
C#8mo ago
Nadal

Help In Docker

When i execute docker-compose commande i got this error : 2>Step 1/8 : FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base 2>8.0: Pulling from dotnet/aspnet 2>no matching manifest for windows/amd64 10.0.19045 in the manifest list entries im using .net 8 in windows, visual studio as IDE, in docker i have only one image is mongo with 6GB in size
6 Replies
jcotton42
jcotton428mo ago
is Docker set up to use Windows or Linux containers? the docs for setting up windows containers mention a very similar error message @Nadal
If you see an error message that says no matching manifest for linux/amd64 in the manifest list entries, make sure Docker isn't configured to run Linux containers. To switch to Windows containers in Docker, right-click the Docker icon, and select Switch to Windows containers. To use the command line to switch between containers, run & $Env:ProgramFiles\Docker\Docker\DockerCli.exe -SwitchDaemon.
https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/run-your-first-container#pull-a-container-base-image so make sure it's set to use linux
Nadal
NadalOP8mo ago
when i set it to use linux my project said that is writen to be run on windows docker. should i change something on my docker file ?
Nadal
NadalOP8mo ago
No description
Nadal
NadalOP8mo ago
Severity Code Description Project File Line Deletion Status Error CTC1005 Your Docker server host is configured for 'Linux', but your project targets 'Windows'. Catalog.API C:\Users\HP.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.19.5\build\Container.targets 215
jcotton42
jcotton428mo ago
Oh. Dunno if there’s a windows sdk image. Probably is.
Nadal
NadalOP8mo ago
i will look for it, otherwise thank you @jcotton42 for your answers and your Time. @TeBeClone
Want results from more Discord servers?
Add your server