Context: The use case is creating an docker image of a asp.net mvc application and run it within Dcoker Desktop as local container. The Visual Studio Code is the IDE. The app is published by folloiwng command
dotnet publish -c Release -o ./bin/Publish
Once the the publication is done then the docker image was created through following command
docker build -t testapp
The testapp is visible as one of the image in docker by executing the following command
docker images
The problem statement: Though the image is created but not able to run the image in the container by executing the following command
docker run -d -p 80:8080 testapp
Cannot see the running containers after executing the follwing command
docker ps
It seems the container i.e. docker desktop is not able to run the image.
Can anyone put some light on getting the root cause of the issue?
3