C#C
C#2y ago
Ares

✅ [ASP.NET CORE] Error when trying to run docker image i pushed to dockerhub

so i built, tagged, then uploaded my asp.net project to docker hub, and then i downloaded the
compose.yaml
,
Dockerfile
, and
.dockerignore
, and
.csproj
from my repo: . so i have all those 4 files in a empty folder called
Docker
. And then I pull my image from docker hub and then i use
docker compose up
to run the image using the yaml file. It starts building but then stops suddenly, complaining about a Main class in program.cs (but Im not even writing a console app?)
Was this page helpful?
✅ [ASP.NET CORE] Error when trying to run docker image i pushed to dockerhub - C#