提交 bc0cf31a 编写于 作者: N nicolargo

Add hide filter to Docker list (first part of #1748)

上级 5f037bb8
......@@ -327,6 +327,8 @@ port_default_gateway=True
[docker]
disable=False
# Hide some containers (comma separeted list)
#hide=telegraf
# Define the maximum docker size name (default is 20 chars)
max_name_size=20
#cpu_careful=50
......
......@@ -210,6 +210,10 @@ class Plugin(GlancesPlugin):
# Get stats for all containers
stats['containers'] = []
for container in containers:
# Do not take hide container into account
if self.is_hide(nativestr(container.name)):
continue
# Init the stats for the current container
container_stats = {}
# The key is the container name and not the Id
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册