Docker-compose禁用其中一个容器的输出 [英] Docker-compose disable output on one of containers

查看:259
本文介绍了Docker-compose禁用其中一个容器的输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的项目使用Codeship CI。
我已经进行了硒测试,并且正在使用 selenium / standalone-firefox 中的远程浏览器,但它会产生大量日志,因此我要禁用stdout selenium / standalone-firefox 容器

I am using Codeship CI for my project. I have selenium tests and I am using remote browser from selenium/standalone-firefox but it's producing tons of logs, so I want to disable stdout for selenium/standalone-firefox container.

有什么想法可以做到吗?

Any ideas how I can do this?

推荐答案

我用过这种方法:

JAVA_OPTS=-Dselenium.LOGGER.level=WARNING

将其添加为 selenium / standalone-chrome 的docker映像中的ENV变量。

Added it as ENV variables in docker image for selenium/standalone-chrome.

这篇关于Docker-compose禁用其中一个容器的输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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