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

Docker Desktop disappeared after latest update

Open naourass opened this issue 1 year ago • 29 comments

Description

I just updated Docker to the latest version (Windows 11 - WSL2) by following the update notification in the ui. Now Docker Desktop has completely disappeared from the windows app list/search. When I try to open \Program Files\Docker\Docker\Docker Desktop.exe or \Program Files\Docker\Docker\resources\Docker Desktop.exe nothing happens. And when I open Docker Desktop Installer.exe in the same former directory, I get this error:

Installation failed: empty package at Docker.Installer.InstallWorkflow.<DoProcessAsync>d__23.MoveNext()

I had Docker working and updating fine for more than one year before this update and I have important data (local containers) that I don't want to lose.

Is there some known solution to fix this and get Docker back without losing the containers and their data? Thanks.

Reproduce

  1. Click on the update notification in docker desktop and confirm the update
  2. Wait for the installation to finish
  3. Installation screen just disappear without any success or error message
  4. Docker app is not available anymore and not even present in Settings -> Apps -> Installed apps

docker version

The command 'docker version' is not working anymore. I have a very basic and default installation that uses WSL2 without any custom parameter or configuration.

docker info

The command 'docker info' is not working as well.

Diagnostics ID

Can't open the app and can't run docker command line.

Update: The diagnosis ID is 52959DD5-92E6-438A-ADE7-5EFB1FDD4149/20240906123144

Additional Info

My docker usage is very basic. I either use docker run, docker-compose up, or use the ui to start/stop containers. I let all the parameters in their default state.

naourass avatar Sep 06 '24 01:09 naourass

@naourass, I am sorry to hear you experienced this issue with the update. Could you please create and upload a diagnostic via the command line, as per instructions here?

MihaelaStoica avatar Sep 06 '24 11:09 MihaelaStoica

@MihaelaStoica Yes sure, here's the output of the command: Diagnostics ID: 52959DD5-92E6-438A-ADE7-5EFB1FDD4149/20240906123144 (uploaded)

naourass avatar Sep 06 '24 12:09 naourass

I'm wondering if I download a fresh docker desktop installation executable and run it, would this delete or mess with the existing containers or their data? Otherwise, is there any known workaround to fix this without losing containers/data ?

Update: Fixed by downloading the installer and running it again. Didn't lose any data.

naourass avatar Sep 06 '24 14:09 naourass

just updated and having the same issue

connormathenyroots avatar Sep 06 '24 15:09 connormathenyroots

@connormathenyroots Would you be able to create an upload a diagnostic bundle please?

chelnak avatar Sep 09 '24 08:09 chelnak

@naourass, I am happy to hear you restored your Docker Desktop. Yes, downloading the full installer and running it over the broken Docker Desktop instance will preserve your data, as long as you didn't perform an uninstall or a reset to factory defaults on the previous installation.

MihaelaStoica avatar Sep 09 '24 10:09 MihaelaStoica

I can confirm installing the latest update results in Docker Desktop being uninstalled instead.

SmashingQuasar avatar Sep 22 '24 07:09 SmashingQuasar

Same Issue here, today I got to work and found out Docker was gone from my Windows11 workstation (WSL). I assume our patch management system provided by Bitdefender Gravityzone tried installing Docker 4.34.3 since this is the latest version.

andrei1058 avatar Oct 11 '24 07:10 andrei1058

Juste happened to me. I even had auto updates disabled in the Docker Desktop settings to prevent it from updating while I'm working.

devhl-labs avatar Oct 12 '24 19:10 devhl-labs

Juste happened to me. I even had auto updates disabled in the Docker Desktop settings to prevent it from updating while I'm working.

Sorry to hear that you have experienced this!

Are you in a position to send us a diagnostic bundle? Or at minimum the installer logs from C:\ProgramData\DockerDesktop?

chelnak avatar Oct 12 '24 20:10 chelnak

Just reporting: Updated docker yesterday from within the app and it broke - kept on complaining about the docker engine not starting up. I uninstalled, (losing all my work databases etc), downloaded the new docker, installed. It worked fine but on restart the GUI never showed up (I did change it to always startup but start minimized) but it wasn't minimized. It was running in task manager and wsl had docker and it worked, but the GUI app was just gone (not on different screens, just gone). Doing another clean install now. WSL2 Ubuntu 24.04 -> Windows 11 latest stable.

andretheronsa avatar Oct 30 '24 10:10 andretheronsa

same problem on mac os

koljahuang avatar Nov 06 '24 08:11 koljahuang

Happened today updating to 4.35.1 (173168) via Docker Desktop on Win11. Far from the first time (it always uninstalls on update), but a reinstall works for me.

rfc3092 avatar Nov 11 '24 08:11 rfc3092

Hello. Can someone experimenting the issue send me a diagnostic? 52959DD5-92E6-438A-ADE7-5EFB1FDD4149/20240906123144 has been garbage collected. I took a look at @devhl-labs logs but there are no useful information (it's an upgrade from 4.34.2 to 4.34.3, there is no error during install)

ebriney avatar Nov 14 '24 14:11 ebriney

I had check for updates disabled because it updates while im working. Why did it update? Also, i just saw it disable my wsl integration. Second time I've seen that!

devhl-labs avatar Nov 14 '24 15:11 devhl-labs

And again today, updating from 4.35.1 to 4.36.0. But it appears I've found a cause.

See, Docker Desktop actually installs kubectl, taking presedence over my installed gcloud kubectl. Which is something I definitely do not want.

I've a script to rename the kubectl.exe from Docker to kubectl.exe.disabled, and as far as I can see in the logs this causes the install to crash without any user displayed error and rollback to an apparently uninstalled state.

Attached logs (error messages in Norwegian, I'm afraid). Note that I install Docker Desktop by elevating to admin during install. I do not elevate to install gcloud kubectl. This has significance in how the PATH is built (I cannot simply move gcloud before Docker for my user).

install-cli-log-admin.txt install-log-admin.txt

Edit: Confirmed. Reinstalled and updated to 4.36.0, undoing the rename trick. Works like a charm. Now, as for Docker Desktop installing an unwanted kubectl without letting me opt out that's another matter.

rfc3092 avatar Nov 27 '24 09:11 rfc3092

Still an issue in December:

Current version: 4.36.0 (175267)
New version: 4.37.1 (178610)
Download size: 141.3 MB

spector32 avatar Dec 19 '24 07:12 spector32

I had this same thing just happen to me today.

Version 4.37.1
Windows 11 Pro 10.0.26100 Build 26100

binaryn3xus avatar Dec 23 '24 02:12 binaryn3xus

@spector32 @binaryn3xus can you please share a diagnostics id?

bsousaa avatar Jan 06 '25 13:01 bsousaa

@spector32 @binaryn3xus can you please share a diagnostics id?

Sorry for the late reply. I reimaged my machine so unfortunately I don't have that anymore.

binaryn3xus avatar Jan 13 '25 18:01 binaryn3xus

Same issue for me. A new available update showed up today and I tried to install it. After a while I notice my existing installation was entirely gone. I don't remember what version I was on before (should have been pretty recent) and didn't notice which one the new was supposed to be but I did read the two lines of release notes and they correspond with 4.37.0.

EDIT: Apparently there was something that went wrong with the installation process as when I tried to reinstall manually the latest version I got an error stating that a process or a file was still in use/locked and the new installation failed. This was hours after the original update had failed. There was nothing suggesting the update was still going on or stuck and it was hours after it had apparently failed so something was definitely off. After a restart the new installation went through as usual and my docker is now running again (at 4.37.1!) with no data loss - all containers still present and they even kept their original running states.

mtzonev avatar Jan 14 '25 10:01 mtzonev

Exact same issue for me today. Diagnostic ID: 3AB6A052-78CA-476C-AECD-1DFCD19823DC/20250213144727

jgranade avatar Feb 13 '25 15:02 jgranade

Same issue for me, and I couldn't upload the diagnostics. I'm forbidden :)

Image

garnbutik avatar Feb 17 '25 09:02 garnbutik

My Docker seems to have disappeared today after I started an update.

A box came up with nothing inside it, with two options, kill processes, or refresh. I hit refresh.

Then it showed an installation log window. Then it closed by itself. I don't see anything else.

Windows 11 Home (ARM) 24H2

Image

earthiverse avatar Mar 12 '25 12:03 earthiverse

My Docker seems to have disappeared today after I started an update.

Same issue (again!) for me. I was on 4.38.0 and was alerted about the new version. Pretty much the same flow as what you reported ending up with old installation gone and new stuck in limbo (when I tried install manually after some hours I saw there was a stuck process that was preventing me to do so). I had to restart the host machine and then do a clean install, fortunately with no data loss.

mtzonev avatar Mar 12 '25 12:03 mtzonev

@earthiverse @mtzonev can you please share a diagnostic id?

bsousaa avatar Mar 12 '25 12:03 bsousaa

Here for the same thing, Docker Desktop disappeared just now. Haven't touched the installation in who knows how long, I only realized because some services I have set to start on boot are now.. not starting. Running Windows 10 Pro 22H2 (19045.5371).

tayl avatar Mar 13 '25 04:03 tayl

can you please share a diagnostic id?

I reinstalled Docker (haven't reattempted the update, though).

Diagnostics ID: C13ECAD8-0D08-4D82-AB33-876FE71FA8C4/20250313042555

earthiverse avatar Mar 13 '25 04:03 earthiverse

Happened with me just now.

CodeInVeins avatar Mar 31 '25 17:03 CodeInVeins