来自windows的unistall docker
我想完全卸载Windows的Docker(Dockertoolbox)来清理系统并重新安装
所以我开始删除默认虚拟机,就像文档说的那样: https://docs.docker.com/toolbox/toolbox_install_windows/#how-to-uninstall-toolbox
所以我做了docker-machine rm default
C:\Users\a.pinato>docker-machine rm default
About to remove default
WARNING: This action will delete both local reference and remote instance.
Are you sure? (y/n): y
Error removing host "default": C:\Program Files\Oracle\VirtualBox\VBoxManage.exe unregistervm --delete default 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\xxxxxxx\.docker\machine\machines\default\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
答案 0 :(得分:3)
我关闭了vboxheadless的所有实例,并重复了docker-machine rm default
成功删除