首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >没有读取码头日志的docker日志容器

没有读取码头日志的docker日志容器
EN

Server Fault用户
提问于 2020-05-24 02:27:14
回答 1查看 132关注 0票数 0

新来的码头..。

因此,有几个容器正在运行,我想运行一个日志容器来收集所有的日志并将它们发送到Rapid7。

rapid7容器作为其向远程syslog发送统计信息的方式工作。

但是..。它没有发送集装箱日志..。

使用hello-world容器创建一个测试容器日志作为其简单。

代码语言:javascript
复制
docker run hello-world 

然后看看日志:

代码语言:javascript
复制
docker logs compassionate_chaum

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

显示标准输出,很好。但它没有出现在我的远程日志上?

我遗漏了什么?

EN

回答 1

Server Fault用户

发布于 2020-05-24 08:38:00

看上去很正常。这是hello-world码头映像的标准输出日志。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1018428

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档