如何查看作为Azure Web App在Docker容器中运行的应用程序的控制台输出 [英] How can I view console output of app running in docker container as Azure Web App

查看:164
本文介绍了如何查看作为Azure Web App在Docker容器中运行的应用程序的控制台输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经过一番挖掘,我找到了高级工具"页面和当前Docker日志"链接导致了3个日志文件,但它们都不是我的应用程序的常规输出(其中一个确实包含来自Tornado库的警告消息) 正在使用;其他人似乎正在记录容器本身的拉动).我希望能够看到我的应用程序的控制台输出-这可能吗?谢谢. ,sans-serif; font-size:16px> az容器附加  命令 在容器启动期间提供诊断信息.容器启动后,它将STDOUT和STDERR流式传输到本地控制台.


After some digging, I found the "Advanced tools" page and the "Current Docker Logs" link which led to 3 log files, but none of them are my app's normal output (one of them did contains the WARNING messages from the Tornado library I am using; others seems to be logging the pulling of the container itself).  I would expect to be able to see the console output of my app - is this possible?  Thanks.

解决方案

The az container attach command provides diagnostic information during container startup. Once the container has started, it streams STDOUT and STDERR to your local console.


这篇关于如何查看作为Azure Web App在Docker容器中运行的应用程序的控制台输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆