Newline in container command corrupts display / hides container #2733

pull/2742/head
nicolargo 2024-04-22 11:36:55 +02:00
parent 4fbcd9486d
commit 01097af0ab
1 changed files with 1 additions and 0 deletions

View File

@ -334,6 +334,7 @@ class DockerContainersExtension:
stats['network_rx'] = stats['network'].get('rx') // stats['network'].get('time_since_update')
stats['network_tx'] = stats['network'].get('tx') // stats['network'].get('time_since_update')
stats['uptime'] = pretty_date(parser.parse(started_at).astimezone(tz.tzlocal()).replace(tzinfo=None))
# Manage special chars in command (see isse#2733)
stats['command'] = replace_special_chars(' '.join(stats['command']))
else:
stats['io'] = {}