docker stats flickers #2330

Closed
opened 2026-01-30 22:52:33 +00:00 by claunia · 11 comments
Owner

Originally created by @ahmelsayed on GitHub (Jun 27, 2019).

Environment

Windows build number: 10.0.18922.1000
Windows Terminal version (if applicable): 0.2.1715.0

Any other software? WSL2, zsh, docker

Steps to reproduce

docker run --rm -d alpine sleep 20s
docker run --rm -d alpine sleep 20s
docker stats

Expected behavior

On GNOME Terminal the output is displayed without flickering.

Actual behavior

On Windows Terminal it flickers.

I tried to record a GIF, but my screen recorder doesn't show the flickering. It only records at 10 fps though.

Originally created by @ahmelsayed on GitHub (Jun 27, 2019). # Environment ```none Windows build number: 10.0.18922.1000 Windows Terminal version (if applicable): 0.2.1715.0 Any other software? WSL2, zsh, docker ``` # Steps to reproduce ```bash docker run --rm -d alpine sleep 20s docker run --rm -d alpine sleep 20s docker stats ``` # Expected behavior On GNOME Terminal the output is displayed without flickering. # Actual behavior On Windows Terminal it flickers. I tried to record a GIF, but my screen recorder doesn't show the flickering. It only records at 10 fps though.
claunia added the Resolution-Duplicate label 2026-01-30 22:52:33 +00:00
Author
Owner

@JushBJJ commented on GitHub (Jun 27, 2019):

Does it flicker with the old cmd? If it does still then report the issue at the WSL repo.

@JushBJJ commented on GitHub (Jun 27, 2019): Does it flicker with the old cmd? If it does still then report the issue at the WSL repo.
Author
Owner

@miniksa commented on GitHub (Jun 27, 2019):

Record with your smartphone and upload a video?

@miniksa commented on GitHub (Jun 27, 2019): Record with your smartphone and upload a video?
Author
Owner

@ahmelsayed commented on GitHub (Jun 28, 2019):

https://ahmelsayed.blob.core.windows.net/public/IMG_0144.mp4

The first is Windows Terminal, then I switch the KVM to a linux box running GNOME Terminal.

@ahmelsayed commented on GitHub (Jun 28, 2019): https://ahmelsayed.blob.core.windows.net/public/IMG_0144.mp4 The first is Windows Terminal, then I switch the KVM to a linux box running GNOME Terminal.
Author
Owner

@aidabeorn commented on GitHub (Jun 28, 2019):

I wonder if this is related to the draw performance in general?
It can also be observed by running, e.g. sudo yast2 on OpenSuSE Leap 15.1 in WSL:
In Terminal:
ezgif-2-c671632045b9

In standard conhost:
ezgif-2-a20ef2dbfce1

the issue becomes more apparent when running the terminal emulator in a larger size.

@aidabeorn commented on GitHub (Jun 28, 2019): I wonder if this is related to the draw performance in general? It can also be observed by running, e.g. `sudo yast2` on OpenSuSE Leap 15.1 in WSL: In Terminal: ![ezgif-2-c671632045b9](https://user-images.githubusercontent.com/219796/60308350-99e30d80-9948-11e9-9fb8-2d0895b05bd6.gif) In standard conhost: ![ezgif-2-a20ef2dbfce1](https://user-images.githubusercontent.com/219796/60308364-a6676600-9948-11e9-9510-da2d4fbe1fea.gif) the issue becomes more apparent when running the terminal emulator in a larger size.
Author
Owner

@JushBJJ commented on GitHub (Jun 28, 2019):

That's quite weird. I think it has to do something with the rendering that makes it flicker.

@JushBJJ commented on GitHub (Jun 28, 2019): That's quite weird. I think it has to do something with the rendering that makes it flicker.
Author
Owner

@DHowett-MSFT commented on GitHub (Jul 1, 2019):

Until proven otherwise, I'll dupe this to #778. Thanks for all the cool repro cases!

@DHowett-MSFT commented on GitHub (Jul 1, 2019): Until proven otherwise, I'll dupe this to #778. Thanks for all the cool repro cases!
Author
Owner

@skyline75489 commented on GitHub (Apr 12, 2020):

@miniksa I'm gonna comment here so it does not mess with the pile of comments in #5185.

I've also seen this with iTerm2 on macOS when I'm in a SSH session on remote machines and the network is slow. The routine of docker stats is basically repainting all the stats to the screen over and over again. Natually it should flicker if the duration between each painting is noticeably long. I begin to doubt that this is rendering-related. We can improve rendering performance for sure. But the docker stats may still be flickering, even in iTerm2.

@skyline75489 commented on GitHub (Apr 12, 2020): @miniksa I'm gonna comment here so it does not mess with the pile of comments in #5185. I've also seen this with iTerm2 on macOS when I'm in a SSH session on remote machines and the network is slow. The routine of `docker stats` is basically repainting all the stats to the screen over and over again. Natually it should flicker if the duration between each painting is noticeably long. I begin to doubt that this is rendering-related. We can improve rendering performance for sure. But the `docker stats` may still be flickering, even in iTerm2.
Author
Owner

@miniksa commented on GitHub (Apr 12, 2020):

@skyline75489, OK. I might not worry that hard about it right now then and just get the differential work in and let a future issue be opened fresh if there is still a real problem. Thanks!

@miniksa commented on GitHub (Apr 12, 2020): @skyline75489, OK. I might not worry that hard about it right now then and just get the differential work in and let a future issue be opened fresh if there is still a real problem. Thanks!
Author
Owner

@tu-nv commented on GitHub (Sep 30, 2020):

@miniksa In my case, New Terminal has a serious flickering issue that makes docker stats not usable, but the wsltty (https://github.com/mintty/wsltty) does not have that issue. I am running win 10, terminal preview Version: 1.4.2652.0. And yes, I do ssh to another machine and fire tmux there, open docker stats in one tmux panel.

@tu-nv commented on GitHub (Sep 30, 2020): @miniksa In my case, New Terminal has a serious flickering issue that makes `docker stats` not usable, but the wsltty (https://github.com/mintty/wsltty) does not have that issue. I am running win 10, terminal preview Version: 1.4.2652.0. And yes, I do ssh to another machine and fire tmux there, open `docker stats` in one tmux panel.
Author
Owner

@jherico commented on GitHub (May 5, 2021):

I found this and after reading through the linked comments I think this is really a docker stats issue rather than a windows termainl issue. I was able to reproduce it on ConEmu.

@jherico commented on GitHub (May 5, 2021): I found this and after reading through the linked comments I think this is really a docker stats issue rather than a windows termainl issue. I was able to reproduce it on ConEmu.
Author
Owner

@ClassicDarkChocolate commented on GitHub (Dec 1, 2021):

I found that when I right click on tab to open context menu. When the context menu is in open state, the terminal updates screen without flickering.

@ClassicDarkChocolate commented on GitHub (Dec 1, 2021): I found that when I right click on tab to open context menu. When the context menu is in open state, the terminal updates screen without flickering.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2330