我在 Window 10 中使用我的用户帐户权限创建了一个 docker-machine。
By command:
C:\Users\my_name>docker-machine create -d "virtualbox" haha
Run Code Online (Sandbox Code Playgroud)
但是,我在通过以管理员身份运行的 CMD 删除它们时遇到了问题。
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: …Run Code Online (Sandbox Code Playgroud)