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
• 10,620 points
599 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,700 points

Related Questions In DevOps & Agile

0 votes
2 answers

How does Docker for Windows run Linux containers?

One of the most important enhancements is ...READ MORE

answered Aug 29, 2020 in DevOps & Agile by Pistle
• 1,000 points
1,126 views
0 votes
1 answer

Docker for Windows error: “kubectl context missing”

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

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

Docker for windows error: while exposing Ports

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

answered Aug 29, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
2,990 views
0 votes
2 answers

How to build docker images using VS2017?

Open Visual Studio and create a new project. Select ASP.Net Core Web ...READ MORE

answered Aug 25, 2020 in DevOps & Agile by Pistle
• 1,000 points
1,394 views
+2 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 23, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
934 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP