Help creating a ASP.NET docker container

Sorry if this is a really basic thing I am having issues with, I am new to this stuff.

I am having trouble just running a ASP.NET application in docker and viewing it in the browser.

Here is my dockerfile:
FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8

and this is the command I am entering in the terminal:
docker run -ti test1 --rm -p 8000:80

and I get the following error:

Service 'w3svc' has been stopped

APPCMD failed with error code 4312

Failed to update IIS configuration

Any help at all would be super appreciated, I watched a linkedin learning course on docker but am still having trouble figuring some things out. :stuck_out_tongue: