Output from .net core console app by docker logs

后端 未结 3 770
迷失自我
迷失自我 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 16:54

    Yes. You can see logs written to stdout and stderr if you use the default logging driver.

    By default, docker logs shows the command’s STDOUT and STDERR.

    View logs for a container or service

提交回复
热议问题