简体   繁体   English

容器停止向 AWS CW 发送日志

[英]Container stop's sending logs to AWS CW

yes so I've been following these docs from docker logging driver https://docs.docker.com/config/containers/logging/awslogs/是的,所以我一直在关注来自 docker 日志记录驱动程序的这些文档https://docs.docker.com/config/containers/logging/awslogs/

when I'm using my custom image my container is not sending logs to CW but when I used an image from docker hub ex.当我使用我的自定义图像时,我的容器没有将日志发送到 CW,但是当我使用来自 docker hub ex 的图像时。 nginx, lamp stack it is successfully sending logs (tested using docker-compose). nginx、lamp stack 正在成功发送日志(使用 docker-compose 测试)。

Also when using docker run it is successfully sending logs but when restarting the container it stops sending logs again.此外,当使用 docker run 时,它会成功发送日志,但是当重新启动容器时,它会再次停止发送日志。 is there some kind of command needed to add in my compose file or when using docker run??是否需要在我的撰写文件中或使用 docker run 时添加某种命令?

If you need to see docker logs install portainer using docker, only two command you need to run.如果你需要查看 docker logs install portainer using docker,只需要运行两个命令。 portainer will help you to manage docker logs portainer 将帮助您管理 docker 日志

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM