I'm using Docker for Windows and creating a project with ASP.NET Core and Visual Studio Docker Tools.
This is my docker-compose.debug.yml:
version: '2'
services:
aspnetcore_rtm_windows_docker_sample:
image: username/aspnetcore_rtm_windows_docker_sample:Debug
build:
context: .
dockerfile: Dockerfile.debug
environment:
- REMOTE_DEBUGGING=${REMOTE_DEBUGGING}
ports:
- "80:80"
volumes:
- .:/app
But when I start the project I get the following error:
host not found
So I’ve tried resolving the error and if I remove the volume entry, it works fine. It returns "Hello world" and I can debug the ASP.NET Core sample.
But why is this happening?