Output from .net core console app by docker logs

后端 未结 3 754
迷失自我
迷失自我 2021-01-17 16:23

Should I see console output (Console.WriteLine) from .net core console app dockerized (linux image) by using docker logs command?

3条回答
  •  时光取名叫无心
    2021-01-17 17:14

    Found out that in debug mode the app only writes to the debug output console. So if you run docker logs on a local debugging container there will be nothing. If you run the container in release mode then the logs will be present when running a docker logs

提交回复
热议问题