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

Upgrade gets stuck in "Stopping VM and preparing for update" state

Open OriYosefiMSFT opened this issue 8 years ago • 21 comments

Expected behavior

Update to 17.11.0-ce-win40 succeeds

Actual behavior

Update starts but gets stuck in "stopping VM and preparing for update" stage. Closing windows doesn't work restarting and trying again doesn't work.

Information

  • Diagnostic ID from "Diagnose & Feedback" in the menu.
  • a reproducible case if this is a bug, Dockerfiles FTW
  • page URL if this is a docs issue or the name of a man page
  • host distribution and version (Windows version, build number, etc) image

Steps to reproduce the behavior

  1. ...
  2. ...

OriYosefiMSFT avatar Dec 14 '17 21:12 OriYosefiMSFT

I have had the exact same issue for about a month now. Docker will not start, update or allow uninstalling. I have tried killing all running Docker processes and running the installer from scratch, but no cigar. Were you able to fix this properly or should I consider some kind of manual uninstall?

jhaagmans avatar Jan 08 '18 10:01 jhaagmans

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

docker-robott avatar Apr 16 '18 15:04 docker-robott

Same problem. Docker stopped working after android studio modified some stuff in my Windows machine. Can't start or update Docker now.

blood0cean avatar May 14 '18 12:05 blood0cean

@blood0cean I think Android Studio installs HAXM, which is another hypervisor. Unfortunately, HAXM and Hyper-V are mutually exclusive. However, I think Microsoft just released (or is about to release) Hyper-V support for the Android emulator: https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/ which should avoid the issue.

rn avatar May 14 '18 12:05 rn

Same problem when trying to upgrade to 2.1.0.2.

Is this issue getting any priority at all?

blackspy21 avatar Sep 23 '19 07:09 blackspy21

I'm not sure how detailed my solution has to be, but it seems like when I went to Program and Features in Windows Settings and turned on Hyper-V, it fixed this issue.

fahimtran avatar Nov 06 '19 20:11 fahimtran

Same problem here trying to go from 2.1.0.2 to 2.1.0.5. Initially installed with choco, so I suspect something nonstandard happened there, but it looks like people have been experiencing this issue off and on since 2016 so perhaps it's deeper.

ianmaddox avatar Feb 11 '20 19:02 ianmaddox

I made a bunch of changes that eventually worked after several false steps and reboots. The installer bundled with 2.1.0.2 and 2.1.0.5 managed to wreck my system to the point where I had to do a snapshot restore, so I do not recommend a traditional uninstall.

The following steps worked for me:

  1. Turn on the following Windows Features: Hyper-V Containers Windows Hypervisor Platform
  2. Open Hyper-V Manager and stop any Docker instances you see
  3. Download and install the latest Docker Desktop I used 2.2.0.3 (42716)
  4. When prompted, allow the installer to remove the old version

ianmaddox avatar Feb 11 '20 22:02 ianmaddox

Same problem for me. Since 2.2 version, update and uninstall are failing.

Looks like udpate and uninstall requires to stop/remove VM while they can't

Contacted slack channel #docker-desktop-win, didn't get no answer

Edit: Found a weird thing, deactivated WSL feature and docker engine update went well. No issue issue with docker engine runtime as well If I reactivate WSL, I get an error with docker engine I sent the report number A4FCEBC4-D475-4AAD-A7D1-9121834A0248/20200228155301

image

/remove-lifecycle stale

ant-1 avatar Feb 27 '20 08:02 ant-1

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

docker-robott avatar May 28 '20 01:05 docker-robott

Just got this when trying to upgrade from 2.2.0.3 to 2.3.0.3. Above fixes did nothing to resolve the issue.

GertjanMonkeyProof avatar Jun 22 '20 07:06 GertjanMonkeyProof

/remove-lifecycle stale

GertjanMonkeyProof avatar Jun 22 '20 07:06 GertjanMonkeyProof

Just happened while updating to 2.3.0.4

dav-tb avatar Sep 17 '20 01:09 dav-tb

Yup, 2.3.0.4 and same results on two different laptops.

stanspotts avatar Sep 24 '20 14:09 stanspotts

I have the same on 2.3.0.5

AivarasAukselis avatar Oct 02 '20 09:10 AivarasAukselis

Same happend on my machine after running docker on WSL2.

Before updating, switch back to Hyper-V, then run the update and everything works fine. Must be a bug in the installer I guess...

GeertHuls avatar Oct 08 '20 19:10 GeertHuls

Para mim resolveu, executando o comando Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All no PowerShell como admin, logo após reiniciando o W10 e atualizando o Docker.

https://www.gitmemory.com/issue/docker/for-win/1431/584892042 https://docs.microsoft.com/pt-br/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v

JanairAlves avatar Nov 06 '20 23:11 JanairAlves

The following steps worked for me: Disabling the VMM in BIOS, save and restart

Amemiyaa avatar Nov 12 '20 17:11 Amemiyaa

Assuming your Docker update window is still running, Follow the instruction below:

  1. Click Start Windows
  2. Type Hyper-V Manager
  3. Open Hyper-V Manager
  4. On the left window pane, select your computer name
  5. In the right window pane (Actions), click the Stop Service, then click Turn off
  6. Then Start Service again
  7. You should see DockerDesktopVM tab
  8. Under DockerDesktopVM Click the Turn Off
  9. Go back to your docker update window and click refresh

Your docker update should continue installing

doijao avatar Nov 13 '20 14:11 doijao

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days 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

docker-robott avatar Feb 11 '21 01:02 docker-robott