假设:
Dockerfile:
FROM microsoft/dotnet-framework:4.7.1-windowsservercore-1709
ARG source
WORKDIR /app
COPY ${source:-obj/Docker/publish} .
ENTRYPOINT ["C:\\app\\myproject.exe"]
尝试使用以下docker-compose进行运行和调试时,调试工作正常。
version: '3'
services:
myproject:
image: myproject
build:
context: .\myproject
dockerfile: Dockerfile
networks:
default:
external:
name: nat
然而,当我尝试引入自定义网络时
version: '3'
services:
myproject:
image: myproject
build:
context: .\myproject
dockerfile: Dockerfile
networks:
- bck
networks:
bck:
driver: overlay
或
version: '3'
services:
myproject:
image: myproject
build:
context: .\myproject
dockerfile: Dockerfile
networks:
- bck
- default
networks:
bck:
driver: overlay
default:
external:
name: nat
由于以下错误,我无法调试应用程序:
Visual Studio 2017远程调试程序(MSVSMON.EXE)似乎未在远程计算机上运行。这可能是因为防火墙阻止了与远程计算机的通信。有关配置远程调试的帮助,请参阅“帮助”。