locked
Remote Debug inside Docker Windows Container RRS feed

  • Question

  • User-2132497554 posted

    Hi folks,

    I am using asp.net core, Visual studio 2017 and docker windows container. 

    Docker version:
    Docker Version:
    Client: Docker Engine - Community
    Version: 19.03.2
    API version: 1.40
    Go version: go1.12.8
    Git commit: 6a30dfc
    Built: Thu Aug 29 05:26:49 2019
    OS/Arch: windows/amd64
    Experimental: false

    Server: Docker Engine - Community
    Engine:
    Version: 19.03.2
    API version: 1.40 (minimum version 1.24)
    Go version: go1.12.8
    Git commit: 6a30dfc
    Built: Thu Aug 29 05:39:49 2019
    OS/Arch: windows/amd64
    Experimental: false

    I run cmd as fellow:
    > docker build -t mypptest . 

    > docker run -d -p 8080:80 --name myproject myapptest 

    It seems ok.
    Now How to remote debugger an asp.net core application inside docker windows container? if possible

    I am waiting for your response.

    Thanks in Advance.

    Tuesday, October 22, 2019 8:00 AM

All replies

  • User-2132497554 posted

    @lextm

    I am using Windows Docker container ... not Linux Docker container

    Wednesday, October 23, 2019 4:39 AM
  • User711641945 posted

    Hi lamGuy84,

    >Now How to remote debugger an asp.net core application inside docker windows container?

    You could try the tutorial below:

    #Attaching to an existing ASP.NET Core process running inside a Windows Docker container

    Best Regards,

    Rena

    Wednesday, October 23, 2019 9:49 AM
  • User-2132497554 posted

    @Rena Ni

    Thank you for your response

    Docker Compose:

    version: '3.4'

    networks:
     customnetwork:
       driver: nat
       ipam:
      driver: default
      config:
       - subnet: 172.18.0.0/16

    ............


    I am getting error error message after run docker-compose up --force-recreate --build and it says:

    Creating network "debugdocker_customnetwork" with the default driver
    ERROR: hnsCall failed in Win32: The object already exists. (0x1392)

     

    Wednesday, October 23, 2019 12:04 PM
  • User711641945 posted

    Hi IamGuy84,

    Creating network "debugdocker_customnetwork" with the default driver ERROR: hnsCall failed in Win32: The object already exists. (0x1392)

    The error results from Docker Network Create Fails.You could follow the github issue like below:

    #Docker Network Create Fails: HNS failed with error : The object already exists. 

    https://github.com/docker/for-win/issues/1384

    Best Regards,

    Rena

    Tuesday, October 29, 2019 7:33 AM