From b8b230359318f14f4449f4384733325c96fcfb40 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 6 May 2023 14:08:13 +0200 Subject: [PATCH] [Docker] Docker lib version 6.1.0 breaks Glances #2366 --- glances/plugins/glances_docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/plugins/glances_docker.py b/glances/plugins/glances_docker.py index b2ac0768..8fa41af9 100644 --- a/glances/plugins/glances_docker.py +++ b/glances/plugins/glances_docker.py @@ -708,7 +708,7 @@ class ThreadDockerGrabber(threading.Thread): self._stopper = threading.Event() # The docker-py return stats as a stream self._container = container - self._stats_stream = container.stats(decode=True) + self._stats_stream = container.stats(stream=True, decode=True) # The class return the stats as a dict self._stats = {} logger.debug("docker plugin - Create thread for container {}".format(self._container.name))