Docker Community Forums

Share and learn in the Docker community.

[resolved] If Docker program is closed. VM still runs


(Mario Pietsch) #1

Expected behavior

There should be a possibility to shut down the program and the VM

Actual behavior

Docker program stopped. VM still active.


(Michael Friis) #2

Hm, I cannot reproduce this problem. I just tried shutting down Docker using the systray icon and then checked in Hyper-V manager - the VM was shut down.

How did you verify that the VM is still running?


(Mario Pietsch) #3

Hyper-V-Manager showed it still running. ā€¦ Just did a test. started nginx webserver. -> Docker systray exit -> nginx still alive.

Hereā€™s the log: see the fatal error neer the end.

[09:30:39.151][Program        ][Info   ] Version: 1.10.6.958
[09:30:39.153][Program        ][Info   ] Starting on: 4/5/2016 9:30:39 AM
[09:30:39.155][Program        ][Info   ] Resources: C:\Program Files (x86)\Docker\Docker\Resources
[09:30:39.158][Program        ][Info   ] OS: Windows 10 Pro
[09:30:39.160][Program        ][Info   ] Edition: Professional
[09:30:39.162][Program        ][Info   ] Id: 1511
[09:30:39.163][Program        ][Info   ] Build: 10586
[09:30:39.165][Program        ][Info   ] BuildLabName: 10586.162.amd64fre.th2_release_sec.160223-1728
[09:30:39.167][Program        ][Info   ] Sha1: 9874eb01c928a73ca043423fcb19263748f373b4
[09:30:39.169][Program        ][Info   ] You can send feedback including this log file at https://forums.docker.com/c/docker-for-windows
[09:30:39.178][HyperV         ][Info   ] Checking for Hyper-V Windows optional feature
[09:30:39.181][PowerShell     ][Info   ] Run script...
[09:30:39.710][HyperV         ][Info   ] Hyper-V Windows feature is enabled
[09:30:40.151][Notifications  ][Info   ] Docker is initializing...
[09:30:40.270][SmbShare       ][Info   ] C File sharing status: NotShared
[09:30:40.291][Auth           ][Info   ] Using Mario for filesystem sharing
[09:30:40.294][Auth           ][Info   ] Retrieved credentials: Mario:***********
[09:30:40.298][Proxy          ][Info   ] Starting com.docker.proxy
[09:30:40.303][Agent          ][Info   ] Starting com.docker.agent
[09:30:40.308][HyperV         ][Info   ] Creating a virtual machine named MobyLinuxVM
[09:30:40.312][HyperV         ][Info   ] Checking for Hyper-V Windows optional feature
[09:30:40.314][PowerShell     ][Info   ] Run script...
[09:30:40.349][Proxy          ][Info   ] 2016/04/05 09:30:40 docker-proxy: ready
[09:30:40.352][Agent          ][Info   ] time="2016-04-05T09:30:40+02:00" level=info msg="Starting Go Agent..." 
[09:30:40.475][Agent          ][Info   ] time="2016-04-05T09:30:40+02:00" level=info msg="Agent is listening on 127.0.0.1:31245 for SDK requests..." 
[09:30:40.710][HyperV         ][Info   ] Hyper-V Windows feature is enabled
[09:30:40.714][PowerShell     ][Info   ] Run script with parameters: -IsoFile C:\Program Files (x86)\Docker\Docker\Resources\mobylinux.iso -create True...
[09:30:41.566][Updater        ][Info   ] Found remote version. Version = 1.10.6.958
[09:30:41.569][Updater        ][Info   ] Local version is up to date.
[09:30:44.308][HyperV         ][Info   ] Using existing Switch: DockerNAT
[09:30:44.380][HyperV         ][Info   ] Using existing: MobyLinuxVM
[09:30:44.383][HyperV         ][Info   ] Start a virtual machine named MobyLinuxVM
[09:30:44.384][HyperV         ][Info   ] Checking for Hyper-V Windows optional feature
[09:30:44.386][PowerShell     ][Info   ] Run script...
[09:30:44.775][HyperV         ][Info   ] Hyper-V Windows feature is enabled
[09:30:44.778][PowerShell     ][Info   ] Run script with parameters: -start True -Credential System.Management.Automation.PSCredential...
[09:30:46.703][HyperV         ][Info   ] Starting VM MobyLinuxVM...
[09:30:46.705][HyperV         ][Info   ] Removing (potentially) existing mount authentication token
[09:30:46.930][HyperV         ][Info   ] Mounting host filesystem
[09:30:46.973][HyperV         ][Info   ] Mounting with user Mario
[09:30:46.982][Notifications  ][Info   ] Docker is running
[09:30:53.082][Proxy          ][Info   ] 2016/04/05 09:30:53 proxy >> GET /v1.22/containers/json
[09:30:53.085][Proxy          ][Info   ] 2016/04/05 09:30:53 proxy << GET /v1.22/containers/json
[09:35:36.021][Proxy          ][Info   ] 2016/04/05 09:35:36 proxy >> GET /v1.22/containers/json
[09:35:36.024][Proxy          ][Info   ] 2016/04/05 09:35:36 proxy << GET /v1.22/containers/json
[09:36:08.137][App            ][Info   ] User clicked on exit
[09:36:08.145][Notifications  ][Info   ] Shutting down
[09:36:08.299][Proxy          ][Info   ] Stopping com.docker.proxy
[09:36:08.303][Agent          ][Info   ] Stopping com.docker.agent
[09:36:08.309][HyperV         ][Info   ] Stopping VM MobyLinuxVM
[09:36:08.313][HyperV         ][Info   ] Checking for Hyper-V Windows optional feature
[09:36:08.317][PowerShell     ][Info   ] Run script...
[09:36:09.269][HyperV         ][Info   ] Hyper-V Windows feature is enabled
[09:36:09.272][PowerShell     ][Info   ] Run script with parameters: -Stop True...
[09:36:11.172][HyperV         ][Info   ] Removing (potentially) existing mount authentication token
[09:36:11.455][Notifications  ][Error  ] Error: Failed to stop: Fatal error: Failed to stop "MobyLinuxVM": Es wurde keine Integrationskomponente mit dem angegebenen Namen gefunden..
Message: Es wurde keine Integrationskomponente mit dem angegebenen Namen gefunden.
[09:36:11.518][PowerShell     ][Info   ] Run script...
[09:36:39.730][AnimatedSysTray][Error  ] Unable to change icon: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.


(David Gageot) #4

Hi Mario,

This is the same issue you have when clicking on Reset.
It should be fixed in Beta6

David.


(Mario Pietsch) #5

With beta6, this problem is gone. So closing docker shuts down the VM.