docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.86k stars 289 forks source link

Docker Desktop for 4.17.1 breaks any --gpu usage for existing installations #13324

Closed quantumtec closed 1 year ago

quantumtec commented 1 year ago

Actual behavior

After upgrade to 4.17.1 from 4.17.0, containers with --gpu

Expected behavior

Docker containers should be startable, docker-compose should work

Information

WSL-Version: 1.1.3.0 Kernelversion: 5.15.90.1 WSLg-Version: 1.0.49 MSRDC-Version: 1.2.3770 Direct3D-Version: 1.608.2-61064218 DXCore-Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows Version: 10.0.22621.1413

Output of & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check

Starting diagnostics

[PASS] DD0027: is there available disk space on the host? [PASS] DD0028: is there available VM disk space? [PASS] DD0002: does the bootloader have virtualization enabled? [SKIP] DD0018: does the host support virtualization? [PASS] DD0001: is the application running? [PASS] DD0022: is the Virtual Machine Platform Windows Feature enabled? [PASS] DD0021: is the WSL 2 Windows Feature enabled? [PASS] DD0024: is WSL installed? [PASS] DD0025: are WSL distros installed? [PASS] DD0026: is the WSL LxssManager service running? [FAIL] DD0029: is the WSL 2 Linux filesystem corrupt? [ 17.619831] EXT4-fs error (device sdd): ext4_put_super:1188: comm Xwayland: Couldn't clean up the journal [PASS] DD0035: is the VM time synchronized? [PASS] DD0017: can a VM be started? [PASS] DD0016: is the LinuxKit VM running? [PASS] DD0011: are the LinuxKit services running? [PASS] DD0004: is the Docker engine running? [PASS] DD0015: are the binary symlinks installed? [PASS] DD0031: does the Docker API work? [PASS] DD0013: is the $PATH ok? [PASS] DD0003: is the Docker CLI working? [PASS] DD0005: is the user in the docker-users group? [PASS] DD0038: is the connection to Docker working? [PASS] DD0014: are the backend processes running? [PASS] DD0007: is the backend responding? [PASS] DD0008: is the native API responding? [PASS] DD0009: is the vpnkit API responding? [PASS] DD0010: is the Docker API proxy responding? [PASS] DD0006: is the Docker Desktop Service responding? [SKIP] DD0030: is the image access management authorized? [PASS] DD0033: does the host have Internet access? [PASS] DD0002: does the bootloader have virtualization enabled? [PASS] DD0018: does the host support virtualization? [PASS] DD0001: is the application running? [PASS] DD0022: is the Virtual Machine Platform Windows Feature enabled? [PASS] DD0021: is the WSL 2 Windows Feature enabled? [PASS] DD0024: is WSL installed? [PASS] DD0025: are WSL distros installed? [PASS] DD0026: is the WSL LxssManager service running? [WARN] DD0029: is the WSL 2 Linux filesystem corrupt? [ 17.619831] EXT4-fs error (device sdd): ext4_put_super:1188: comm Xwayland: Couldn't clean up the journal [PASS] DD0035: is the VM time synchronized? [PASS] DD0017: can a VM be started? [PASS] DD0016: is the LinuxKit VM running? [PASS] DD0011: are the LinuxKit services running? [PASS] DD0004: is the Docker engine running? [PASS] DD0015: are the binary symlinks installed? [PASS] DD0031: does the Docker API work? [PASS] DD0032: do Docker networks overlap with host IPs?

Steps to reproduce the behavior

  1. ...
  2. ...
krokosik commented 1 year ago

This also happens on my Windows 11 machine. Rebooting WSL, Windows or reinstalling the software doesn't help. I'm downgrading to previous version for now.

gustavozantut commented 1 year ago

Here too, mainly when trying to use gpu

henry-hsiao commented 1 year ago

My condition: after upgrading to 4.17.1 from 4.17.0, "--gpus" not work anymore. Downgrading to 4.17.0 solves the issue.

thekevshow commented 1 year ago

Here too, mainly when trying to use gpu

yeah anything where --gpu all or (index of GPU) it just hangs and nothing happens. I figured it was this update smh. Spent multiple hours trying to fix this already, does anyone have a solution?

EDIT: @henry-hsiao downgrading is the way

gustavozantut commented 1 year ago

Here too, mainly when trying to use gpu

yeah anything where --gpu all or (index of GPU) it just hangs and nothing happens. I figured it was this update smh. Spent multiple hours trying to fix this already, does anyone have a solution?

EDIT: @henry-hsiao downgrading is the way

Downgrade to 4.17.0 https://docs.docker.com/desktop/release-notes/

xtrm0 commented 1 year ago

Same here, exact issue with broken --gpu downgradign to 4.17.0 fixed the issue

Mark-Beaty commented 1 year ago

Same issue for me, downgrading does resolve the issue

peterbandi commented 1 year ago

I cannot downgrade either. Windows defender identifier the installer of 4.17.0 as a threat: Trojan:Script/Wacatac.H!ml

Mark-Beaty commented 1 year ago

I cannot downgrade either. Windows defender identifier the installer of 4.17.0 as a threat: Trojan:Script/Wacatac.H!ml

I had this as well, I allowed it though windows defender and it worked just fine, though I won’t recommend it as a smart solution

nicks commented 1 year ago

thanks for the report! we believe there's a regression in 4.17.1 and are currently investigating

shawnaxsom commented 1 year ago

Thanks again for the report!

We've been able to reproduce and narrow down the problem to an upstream dependency.

We're testing out a fix now that we aim to include in an RC next week, to be released in v4.18.0 in the coming weeks.

Bathsheba commented 1 year ago

On the one hand, thanks! on the other hand...weeks? I hope 4.17.1 will not be pushed automatically during that time.

gustavozantut commented 1 year ago

4.17.1 must be excluded from upgrades options, there can't be any auto update, specially with a broken version. I hope they don't fup again, first the docker teams then the docker xitgrade and now an autoxitgrade? That's 2munch 4 me.

Plot twist: besides all of that, you are injecting trojan on people pc?

Obter o Outlook para Androidhttps://aka.ms/AAb9ysg


From: Bathsheba Grossman @.> Sent: Friday, March 24, 2023 10:11:09 PM To: docker/for-win @.> Cc: Gustavo Abbomerato Zantut @.>; Comment @.> Subject: Re: [docker/for-win] Docker Desktop for 4.17.1 breaks any --gpu usage for existing installations (Issue #13324)

On the one hand, thanks! on the other hand...weeks? I hope 4.17.1 will not be pushed automatically during that time.

— Reply to this email directly, view it on GitHubhttps://github.com/docker/for-win/issues/13324#issuecomment-1483654010, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOKBMEZOAHQQRVYR7OEEHS3W5ZA23ANCNFSM6AAAAAAWDR5QYY. You are receiving this because you commented.Message ID: @.***>

UTshion commented 1 year ago

I had this issue too, downgrading Docker desktop worked for me! Thanks!

gvalenzuelarg commented 1 year ago

Downgrading to 4.17.0 also didn't solve the problem. Version 4.16.3 however works for me.

malcolmradelet commented 1 year ago

Downgrading to 4.17.0 also didn't solve the problem. Version 4.16.3 however works for me.

This is the version I had to downgrade to as well. Unfortunately lost all my volumes during the process.

qingfengfenga commented 1 year ago

Downgrading to 4.17.0 also didn't solve the problem. Version 4.16.3 however works for me.

This is the version I had to downgrade to as well. Unfortunately lost all my volumes during the process.

When demoting or uninstalling docker desktop, you only need to use the wsl export command to export docker desktop data as a file to back up all data

dodgio commented 1 year ago

Downgrading worked here, too. Thanks

damienallen commented 1 year ago

In our case, downgrading to v4.17.0 (after uninstalling v4.17.1) was enough to fix the regression.

JL1829 commented 1 year ago

For my case, downgrade to 4.17.0 good enough

anak1st commented 1 year ago

Downgrading worked for me too. Thanks.

lorenrh commented 1 year ago

Closing this issue because a fix has been released in Docker Desktop 4.18.0. See the release notes for more details.

docker-robott commented 1 year ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked