Docker容器登录VM [英] Docker container logs in VM

查看:138
本文介绍了Docker容器登录VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我在vm中部署的azure门户中看到docker容器日志。是否有任何日志驱动程序azure提供?

How do i see docker container logs in the azure portal which i deployed in the vm. is there any logging drivers azure providing?

推荐答案

Hi Venk,

Hi Venk,

您可以使用Azure Monitor实现这一目标。

You can achieve that using Azure Monitor.

首先,您可以配置Docker将日志存储在目录中。然后按照

链接
以设置azure监视器自定义日志,该日志查找文件与通配符匹配并将数据拉入Azure监视器。

First you can configure the Docker to store logs in a directory. Then follow this link to setup azure monitors custom log which finds the files matches the wildcard and pulls the data into Azure monitor.

稍后您可以
查询

您还可以根据收集的数据配置警报。

You can also configure alerts based on the collected data.

您还可以考虑使用
ACI
如果你不想管理部署docker的基础设施。

You can also consider using ACI if you dont want to manage the infrastructure for deploying docker.


这篇关于Docker容器登录VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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