for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Docker Desktop flickering/turning black/behaving erratically when clicking buttons or hovering mouse over it

Open temotskipa opened this issue 2 years ago • 7 comments

Description

Docker Desktop is almost unusable due to the flickering exhibited after updating to 4.30.0. This issue did not happen in v4.28.0. Here is a video:

https://github.com/docker/for-win/assets/28674735/503d8ed1-2e98-4516-bc32-317440c47db9 https://github.com/docker/for-win/assets/28674735/935b8484-7d65-429e-8cc1-498334340d08

Reproduce

  1. Open the Docker Desktop app on Windows
  2. Click on the settings or similar button
  3. ⛔Docker Desktop flickers

Expected behavior

Docker Desktop shouldn't flicker and just operate normally.

docker version

Client:
 Cloud integration: v1.0.35+desktop.13
 Version:           26.1.1
 API version:       1.45
 Go version:        go1.21.9
 Git commit:        4cf5afa
 Built:             Tue Apr 30 11:48:43 2024
 OS/Arch:           windows/amd64
 Context:           default

Server: Docker Desktop 4.30.0 (149282)
 Engine:
  Version:          26.1.1
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.21.9
  Git commit:       ac2de55
  Built:            Tue Apr 30 11:48:28 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.31
  GitCommit:        e377cd56a71523140ca6ae87e30244719194a521
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    26.1.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.14.0-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.27.0-desktop.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.29
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.23
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.4
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.8.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 26.1.1
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: e377cd56a71523140ca6ae87e30244719194a521
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
 Kernel Version: 5.15.146.1-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 24
 Total Memory: 15.53GiB
 Name: docker-desktop
 ID: a33db9c3-e16e-4a21-ac0f-ee4cdc6148aa
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Labels:
  com.docker.desktop.address=npipe://\\.\pipe\docker_cli
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile

Diagnostics ID

DEA53B74-0F78-4B77-A14C-268DA05E84C9/20240511170216

Additional Info

Environment is Windows. I primarily use it in WSL though.

temotskipa avatar May 11 '24 16:05 temotskipa

There was a similar problem. I had an identical problem in the mongodb compass application

If you have a video card from NVIDIA, you need to install vsync in the driver for the docker application - default by app

Arachnolog avatar Jun 28 '24 16:06 Arachnolog

This has been happening for months now, on Win 11 with a NVIDIA 4090. Just updated to the 560.81 driver release, and Docker Desktop 4.33.1 (where I still have this problem).

Here's how I fixed this with a NVIDIA card:

  1. Open up the NVIDIA Control Panel
  2. Go to "Manage 3D settings" (see tree on left side of window)
  3. Click "Program Settings".
  4. Click "Add". Note that at this point my NVIDIA Control Panel locked up. It seems to try to "phone home" to NVIDIA for some reason. If you experience this, disconnect from the Internet, close the window, and restart from step (1). Internet can be re-enabled after the last step.
  5. If you see "Docker Desktop", click on it and add it. If you don't, the specific program you want is probably at C:\Program Files\Docker\Docker\frontend\Docker Desktop.exe. Note that there are several different Docker Desktop.exe programs installed under C:\Program Files\Docker... make sure you pick the right one.
  6. Once Docker Desktop has been added, configure the following settings:
  • Monitor Technology: Fixed Refresh
  • Preferred refresh rate (<your monitor model here>): Application-controlled
  • Vertical sync: Use the 3D application setting (this might be set by default depending for you)
  1. Hit Apply
  2. Close the NVIDIA Control Panel
  3. Quit Docker Desktop completely (right click on the tray icon and click "Quit Docker Desktop")
  4. Reopen Docker Desktop and the problem should be fixed.

The problem is that Docker Desktop doesn't play nice with vsync for some reason. If you have this configured globally, you'll probably see this periodically in some other applications as well (such as certain browsers).

solidDoWant avatar Aug 12 '24 09:08 solidDoWant

Vertical sync: Use the 3D application setting seems to work for me.

Atliac avatar Aug 12 '24 18:08 Atliac

Vertical sync: Use the 3D application setting seems to work for me.

This also worked for me. Not only for Docker but for VScode as well.

dsheridan3 avatar Apr 22 '25 10:04 dsheridan3

Vertical sync: off worked for me.

naascimento0 avatar May 31 '25 01:05 naascimento0

That fixed it for me just now! It may not play well with gsync?

jet082 avatar Aug 24 '25 21:08 jet082

worked for me too :) thx!

Konar9108 avatar Oct 19 '25 16:10 Konar9108

Win+R). Copy and paste this into the line and hit okay: C:\Program Files\Docker\Docker\Docker Desktop --disable-gpu Fixed.