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
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 sayshttps://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 linuxno 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
.
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 ?
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
Oh.
Dunno if there’s a windows sdk image.
Probably is.
i will look for it, otherwise thank you @jcotton42 for your answers and your Time.
@TeBeClone