ASP.Net Core getting message “The project doesn’t know how to run the profile Docker.” 

Today, want to setup the Docker in my old ASP.Net Core web application. Then, I did Docker configuration manually in the Core application and run, it give me an error “The project doesn’t know how to run the profile Docker.” (I am using Visual Studio 2019) and setup the Linux based Docker in local machine.

I have implemented following things:

  • Remove the Dockerfile from the project
  • Adding the DockerSupport using the Visual Studio 2019 – Right click on the Project -> Add -> Docker Support
  • When you adding, Docker Support, it ask for Windows or Linux – Choose Linux or Windows which server you have installed in your local.
  • Run it, it working fine.

Happy Programming!!

One response to “ASP.Net Core getting message “The project doesn’t know how to run the profile Docker.” ”

  1. Great article, unfortunately in my case I do not see ‘Docker Support’ under ‘Add’

Leave a Reply

Discover more from AI Infrastructure Architect & Enterprise Solution Architect

Subscribe now to keep reading and get access to the full archive.

Continue reading