新来的码头..。
因此,有几个容器正在运行,我想运行一个日志容器来收集所有的日志并将它们发送到Rapid7。
rapid7容器作为其向远程syslog发送统计信息的方式工作。
但是..。它没有发送集装箱日志..。
使用hello-world容器创建一个测试容器日志作为其简单。
docker run hello-world 然后看看日志:
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/显示标准输出,很好。但它没有出现在我的远程日志上?
我遗漏了什么?
发布于 2020-05-24 08:38:00
看上去很正常。这是hello-world码头映像的标准输出日志。
https://serverfault.com/questions/1018428
复制相似问题