Docker Build Error using Visual Studio 2017

HI All,

I’m new to Docker and create a simple .Net core application with Docker by using visual studio 2017.

When I try to build the application, it throws the following error message. Can anyone help me to resolve it. Thanks in advance.

Severity Code Description Project File Line Suppression State
Error Building dockerwebpage
Creating dockercompose3484149639777294787_dockerwebpage_1 …
e[1Ae[2K
Creating dockercompose3484149639777294787_dockerwebpage_1 … e[31merrore[0m
e[1B
ERROR: for dockercompose3484149639777294787_dockerwebpage_1 Cannot start service dockerwebpage: container 27dfa62c467d7d0701aa14979ef8be899972244d72b1e316ed7e9c49b684d2a1 encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2) extra info: {“CommandLine”:“powershell -Command [System.Threading.Thread]::Sleep([System.Threading.Timeout]::Infinite)”,“User”:“ContainerUser”,“WorkingDirectory”:“C:\app”,“Environment”:{“ASPNETCORE_ENVIRONMENT”:“Development”,“ASPNETCORE_URLS”:“http://+:80”,“DOTNET_RUNNING_IN_CONTAINER”:“true”,“DOTNET_USE_POLLING_FILE_WATCHER”:“1”,“NUGET_FALLBACK_PACKAGES”:“c:\.nuget\fallbackpackages”,“NUGET_PACKAGES”:“C:\.nuget\packages”,“NUGET_XMLDOC_MODE”:“skip”},“CreateStdInPipe”:true,“CreateStdOutPipe”:true,“CreateStdErrPipe”:true,“ConsoleSize”:[0,0]}
ERROR: for dockerwebpage Cannot start service dockerwebpage: container 27dfa62c467d7d0701aa14979ef8be899972244d72b1e316ed7e9c49b684d2a1 encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2) extra info: {“CommandLine”:“powershell -Command [System.Threading.Thread]::Sleep([System.Threading.Timeout]::Infinite)”,“User”:“ContainerUser”,“WorkingDirectory”:“C:\app”,“Environment”:{“ASPNETCORE_ENVIRONMENT”:“Development”,“ASPNETCORE_URLS”:“http://+:80”,“DOTNET_RUNNING_IN_CONTAINER”:“true”,“DOTNET_USE_POLLING_FILE_WATCHER”:“1”,“NUGET_FALLBACK_PACKAGES”:“c:\.nuget\fallbackpackages”,“NUGET_PACKAGES”:“C:\.nuget\packages”,“NUGET_XMLDOC_MODE”:“skip”},“CreateStdInPipe”:true,“CreateStdOutPipe”:true,“CreateStdErrPipe”:true,“ConsoleSize”:[0,0]}
Encountered errors while bringing up the project…

For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 346

Thanks,
Anand