I have created a docker-machine with my user account permission in Window 10.
By command:
C:\Users\my_name>docker-machine create -d "virtualbox" haha
However, I got a problem on removing them via CMD run as Administrator.
C:\WINDOWS\system32>docker-machine rm haha
About to remove haha
WARNING: This action will delete both local reference and remote instance.
Are you sure? (y/n): y
Error removing host "haha": C:\Program Files\Oracle\VirtualBox\VBoxManage.exe unregistervm --delete haha failed:
0%...10%...20%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Machine delete failed
VBoxManage.exe: error: Could not delete the medium storage unit 'C:\Users\Beetle\.docker\machine\machines\haha\disk.vmdk' (VERR_SHARING_VIOLATION)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleUnregisterVM(struct HandlerArg *)" at line 165 of file VBoxManageMisc.cpp
C:\WINDOWS\system32>docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
haha virtualbox Timeout
Although I found out that this is a permission problem, which is a machine created by an user cannot be deleted by an admin in Windows 10.
How can I remove a machine created by docker-machine (with user right level) with admin right in Windows 10 ?
Thanks for your time.
rm
, notls
.