Error - run webApi with docker - debugMode


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'

    image: test
      context: .
      dockerfile: Test\Dockerfile

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

Error Get net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).

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