How can I run docker image using Visual Studio 2019?

I have an app that I want to run using docker. when I click “Run” using docker, Visual studio error and logs

C:Usersmyusername.nugetpackagesmicrosoft.visualstudio.azure.containers.tools.targets.9.10buildContainer.targets(198,5):
error CTC1003: Visual Studio container tools require Docker to be
running

Just before that error, VS is trying to run the docker image using the following command

docker run -dt -v "C:Usersmyusernamevsdbgvs2017u5:/remote_debugger:rw" -v "C:WinProjectsProjectNameProjectName:/app" -v "C:WinProjectsProjectName:/src" -v "C:UsersmyusernameAppDataRoamingMicrosoftUserSecrets:/root/.microsoft/usersecrets:ro" -v "C:UsersmyusernameAppDataRoamingASP.NETHttps:/root/.aspnet/https:ro" -v "C:Usersmyusername.nugetpackages:/root/.nuget/fallbackpackages2" -v "C:Program FilesdotnetsdkNuGetFallbackFolder:/root/.nuget/fallbackpackages" -e "DOTNET_USE_POLLING_FILE_WATCHER=1" -e "ASPNETCORE_ENVIRONMENT=Development" -e "ASPNETCORE_URLS=https://+:443;http://+:80" -e "NUGET_PACKAGES=/root/.nuget/fallbackpackages2" -e "NUGET_FALLBACK_PACKAGES=/root/.nuget/fallbackpackages;/root/.nuget/fallbackpackages2" -P --name ProjectName --entrypoint tail projectname:dev -f /dev/null

But that command throws the following error

docker: Error response from daemon: invalid volume specification: ‘C:UsersmyusernameAppDataRoamingASP.NETHttps:/root/.aspnet/https:ro’.

How can I fix this issue and run a Docker image from Visual Studio 2019?

Using the Package Manager Console in Visual Studio, The following command work with no issues.

docker ps
docker-machine status

I don’t understand why Visual Studio is throwing error CTC1003: Visual Studio container tools require Docker to be running

Additionally, I executed ps kill to all images found by running docker ps. I also ran docker system prune -a to clean up everything. but still same issue.

I added docker-compose project and when it runs I get the following error

-------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
  It was not possible to find any installed .NET Core SDKs
  Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
      https://aka.ms/dotnet-download
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
The program 'dotnet' has exited with code 145 (0x91).

Source: StackOverflow