docker / for-win

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

Docker gone if problem during update occurs #1310

Open nphmuller opened 6 years ago

nphmuller commented 6 years ago

Today Docker tried to install the latest version (17.11.0-ce-rc3), but during the update the installer notified me that docker-for-win.iso is in use, which made the installation fail.

No problem, I would just restart later that day and re-run the updater. The problem was however that the current Docker installation was gone. So I had to re-download the installer and reinstall docker manually after rebooting.

Expected behavior

If the update fails, the current Docker installation should still work.

Actual behavior

If the update fails, the current Docker installation is gone.

Information

Steps to reproduce the behavior

  1. Install outdated version of Docker.
  2. Make sure a file of the installer is in use (for example docker-for-win.iso.
  3. Let Docker install the update.
docker-robott commented 6 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

nphmuller commented 6 years ago

/remove-lifecycle stale

docker-robott commented 6 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

sampeson commented 6 years ago

/lifecycle frozen

sampeson commented 6 years ago

I can see the same if I have docker-compose exec <target service> bash open in terminal during Docker for Windows update. It gives error message about not able to access files and Docker for Windows installation is gone. Need to separately install Docker for Windows (after stopping docker-compose exec).

sampeson commented 6 years ago

/remove-lifecycle stale

Leatherwing commented 5 years ago

/remove-lifecycle stale

florenperetti commented 5 years ago

This happened to me today after updating to 2.1.01

JakubSzpejewski commented 5 years ago

This happened to me after 2.1.01 update as well. The installer said docker's installed, but all files were missing. Removing docker from registry in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall and installing again fixed it.

hussnainsheikh commented 5 years ago

Facing the same issue while updating to the 2.1.0.2, docker crash and all gone.

fiuzaB commented 5 years ago

Same here.

deshbandhu commented 5 years ago

yes the same issue, docker icon is missing if docker update gets failed in midway.

MikeWeller commented 4 years ago

This just happend to me with a 2.2.0.X minor upgrade. The setup dialog died with some errors that I didn't save, and afterwards there is no trace of Docker Desktop installed on my system!

Susanthab commented 4 years ago

Docker is gone suddenly. It does not even install the latest Docker on Windows now.

torbjornk commented 4 years ago

+1

For me, I noticed Docker being gone. C:\Program Files\Docker\Docker was replace with just the Docker Desktop Installer.exe (and not a new file). Had a dialogue window about updating, cancelled to see what happened, Docker is still missing.

I originally installed Docker Desktop with chocolatey: choco install docker-desktop -y

Yohandah commented 3 years ago

Just happened to me today .......... this sucks. Made me lose a lot of time.

some1won commented 3 years ago

This happened to me this morning. Any hope of a resolution yet?

wimdows-nl commented 3 years ago

Happened to me today to whilst I was connected to a Docker container from VS Code. That ended up crashing, whilst the update window/popup was active and the next thing, Docker service disappeared from systray and installation was gone and replaced by the installation bootstrapper.

Note that I had not opted to actually install the update, so I reckon this also happens whilst the background Docker update window pops up.

I can't believe this issue is still open after being initially reported back in 2017...

jansenmccloud commented 3 years ago

I had the same problem today. The update failed due to some directory permission problems (windows 10, docker update 2020-11-12, Docker Desktop 2.5.0.1) Now the whole installation is gone. :(

EDIT: But at least to say: After reinstallation i see that all my docker settings are still available :)

bmoyer240 commented 3 years ago

+1

kmute90 commented 3 years ago

+1 it happened during/after 3.0 upgrade

svensaku commented 3 years ago

+1 happened on the 3.0.0 update as well

Delta456 commented 3 years ago

Same for me

pranav-manik commented 3 years ago

+1 tried reinstalling and I recieve the following error Not found at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) at System.Management.ManagementObject.Initialize(Boolean getObject) at System.Management.ManagementBaseObject.get_ClassName() at System.Management.ManagementClass.GetInstances(EnumerationOptions options) at CommunityInstaller.EnableFeaturesAction.GetFeaturesToEnable() at CommunityInstaller.EnableFeaturesAction.<DoAsync>d__37.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at CommunityInstaller.InstallWorkflow.<HandleD4WPackageAsync>d__32.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CommunityInstaller.InstallWorkflow.<DoProcessAsync>d__27.MoveNext()

pranav-manik commented 3 years ago

error fixed removing all Docker related files in system and reinstalling without selecting "install for wsl2"

boy51 commented 3 years ago

Happened to me too, I start my system and for no apparent reason docker is not installed anymore.

LaunaG commented 3 years ago

+1 My Docker Desktop application apparently crashed today during an update and uninstalled itself (Windows 10). I couldn't find the actual event in the Windows application logs and had to fix the problem by reinstalling the program manually. Like jansenmccloud above, my prior settings were restored though.

gulshanBakle commented 3 years ago

error fixed removing all Docker related files in system and reinstalling without selecting "install for wsl2"

I tried this setting, but after installation docker desktop takes forever to start. Also settings tab in dashboard freezes in animation. Did anyone came across any of this behavior ?

Riotsmurf2 commented 3 years ago

Just got this issue again, it has happened to me 3 times. Its amazing that this issue has been on-going for almost 3 and a half years. I cannot find a solution.

pranav-manik commented 3 years ago

error fixed removing all Docker related files in system and reinstalling without selecting "install for wsl2"

I tried this setting, but after installation docker desktop takes forever to start. Also settings tab in dashboard freezes in animation. Did anyone came across any of this behavior ? hmm no did you remove the "C:\Users*\AppData\Roaming\Docker" and "C:\Users*\AppData\Roaming\Docker Desktop" folder before reinstalling?

johnmreynolds commented 3 years ago

Same thing happened to me just now when doing an automatic update of the windows docker desktop.

oluwoleeo commented 3 years ago

I just experienced this. On launching Docker Desktop on Windows, it tried to update. I leave it to do so. After some time, I realised, it had been totally uninstalled from my system. This sucks. It is surprising this has been ongoing for almost 4 years now without a fix.

jsmolley commented 3 years ago

Just experienced this as well (Windows). I clicked "apply and restart" when notified, but it was like the UI jammed and the button did nothing. After a reboot, docker desktop was completely gone. For me it may have been due to a lack of disk space.

sunxyw commented 3 years ago

Same issue here. Docker has gone after the restart after update.

DavidDRea commented 3 years ago

The same just happened to me. I now have half a day's worth of local setup, media imports and elasticpress indexing before work can start

b-hayes commented 3 years ago

I just went to launch docker desktop and it's gone! Went to add/remove programs and it's no longer listed as installed. Docker just randomly uninstalled itself since I used it yesterday!

mfru commented 3 years ago

Same with me, I just now realized that docker is gone. Apparently it nuked itself.

docker and docker-compose are not recognized in wsl anymore. Start menu does not show Docker as entry anymore.

Running Docker Desktop Installer.exe from C:\Program Files\Docker\Docker (4.0.0 67817) yields

Object reference not set to an instance of an object. at CommunityInstaller.InstallWorkflow.d__23.MoveNext() in C:\workspaces\PR-16319\src\github.com\docker\pinata\win\src\Docker.Installer\InstallWorkflow.cs:line 94

Running Docker Desktop.exe directly yields an unhandled exception in .NET:

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** Docker.Core.BackendAPI.ServiceNotInstalledException: Docker Desktop service is not installed at Docker.Core.BackendAPI.BackendAPIPipeResolver.d5.MoveNext() in C:\workspaces\PR-16319\src\github.com\docker\pinata\win\src\Docker.Core\BackendAPI\BackendAPIPipeResolver.cs:line 0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Docker.Core.BackendAPI.ServiceAPIClient.d3.MoveNext() in C:\workspaces\PR-16319\src\github.com\docker\pinata\win\src\Docker.Core\BackendAPI\ServiceAPIClient.cs:line 24 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Docker.Core.BackendAPI.ServiceAPIClient.d16.MoveNext() in C:\workspaces\PR-16319\src\github.com\docker\pinata\win\src\Docker.Core\BackendAPI\ServiceAPIClient.cs:line 156 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Docker.Engines.SettingsAdjuster.d4.MoveNext() in C:\workspaces\PR-16319\src\github.com\docker\pinata\win\src\Docker.Desktop\SettingsAdjuster.cs:line 23 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Docker.App.d__27.MoveNext() in C:\workspaces\PR-16319\src\github.com\docker\pinata\win\src\Docker.Desktop\App.cs:line 119 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

(...) Rest of the log omitted

mfru commented 3 years ago

Installing from a fresh Docker Desktop Installer (4.1.0 69386) got me back to a working installation.

b-hayes commented 3 years ago

got sick of this kind of thing wrecking my day and ditched the docker desktop. Im running docker daemon inside wsl directly now.

diegodimap commented 3 years ago

Just happened to me. I had lots of configuration that are now gone!

hoffmeistert commented 2 years ago

Same here. This has been open since 2017 and look to me like a serious time sink for developers ....

mrpink76 commented 2 years ago

Just happened to me :(

proimage commented 2 years ago

Ditto, during an automatic update. :( Thankfully, all my containers are still intact. :)

stgit123 commented 2 years ago

This happened to me today (again! It has happened before). 4 years since this issue was opened and still no resolution.

shaieleigh commented 2 years ago

Just happened to me too today. I am reading 4 years without a resolution? Crazy

DementedPixel commented 2 years ago

Also started happening for me a few weeks ago. I have downloaded the latest docker but it still tries to update and removed the old version. I have to reinstall docker daily now to keep working.

stgit123 commented 2 years ago

Just happened to me AGAIN. I see I posted about this just 26 days ago. I've unticked 'Automatically check for updates' to save future me from having to reinstall for the 90th time.

shaieleigh commented 2 years ago

Happened to me again a few days ago. I wrote to Docker. The guy that wrote back to me said that this issue does not exist and that my company must use device management software (which we do not, well my team doesn't atm anyway) and then I sent him a link to this site. I haven't heard back. Guess we will see

bosschaert commented 2 years ago

It happened to me as well today (on Mac OSX Monterey 12.1). Reinstalling docker fixed it and thankfully all my settings and images were still there, but I would certainly call it unusual that when you select to 'upgrade' the installation you find that it's removed. Then you have to go and find the docker desktop download page, download it and reinstall it...

stgit123 commented 2 years ago

Maybe it is something to do with this "Grace period ends January 31st. Important terms of service reminder for Docker Desktop use". I guess we will find out in 6 days