Docker Community Forums

Share and learn in the Docker community.

Error - run webApi with docker - debugMode


(Dcsusr001) #1

Hi,

What should I do to Run a Web Api with docker in debug mode?

I have created a poject in VS 2017. This is a WEBAPI project and this has the docker-compose.yml file: (this is the default project with the ValuesController)

version: '3'

services:
  test:
    image: test
    build:
      context: .
      dockerfile: Test\Dockerfile

When I run the project since VS I get an error:

Error Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).

For more detail go to http://aka.ms/DockerToolsTroubleshooting. docker-compose C:\Program Files (x86)\Microsoft VisualStudio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 366