Docker for Windows Error: does not work with Volumes

0 votes

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?

Nov 14, 2018 in DevOps & Agile by Sophie may
• 9,430 points
22 views

1 answer to this question.

0 votes
I was facing a similar issue. But I uninstalled the application and reinstalled it.

Somehow the application started running again.
answered Nov 14, 2018 by Tyrion anex
• 8,280 points

Related Questions In DevOps & Agile

0 votes
1 answer

How does Docker for Windows run Linux containers?

Docker for Windows still uses a Linux ...READ MORE

answered Aug 24, 2018 in DevOps & Agile by Tyrion anex
• 8,280 points
49 views
0 votes
1 answer

Docker for Windows error: “kubectl context missing”

There is an issue with docker for ...READ MORE

answered Aug 27, 2018 in DevOps & Agile by Tyrion anex
• 8,280 points
23 views
0 votes
1 answer

Docker for windows error: while exposing Ports

I faced a similar issue, just follow ...READ MORE

answered Aug 28, 2018 in DevOps & Agile by Tyrion anex
• 8,280 points
619 views
0 votes
1 answer
0 votes
1 answer

How does Docker-for-selenium on Windows work?

In order for windows to support the ...READ MORE

answered Nov 22, 2018 in DevOps & Agile by Tyrion anex
• 8,280 points
28 views