使用docker-machine 0.6.0尝试删除处于这种奇怪状态的机器时:
Directory of C:\Users\docker\.docker\machine\machines\default
02/04/2016 03:11 PM 33,554,432 boot2docker.iso
02/04/2016 03:11 PM <DIR> default
02/04/2016 07:36 PM 88,195,072 disk.vhd
2 File(s) 121,749,504 bytes
它失败 :
C:\Users\docker>docker-machine rm -f default
About to remove default
Error removing host "default": open C:\Users\docker\.docker\machine\machines\default\config.json: The system cannot find the file specified.
Can't remove "default"
刚刚在我的Win 10机器上碰到了这个。 是否有任何明显的解决方法或修复程序?
@jeanlaurent @齐默格伦
刚刚设法解决了这个问题! 遵循它尝试通过资源管理器访问的路径:在我的情况下,我手动删除了这些文件以尝试删除计算机,因为由于某种原因我无法通过docker-machine rm
删除它,记住,所以我只是创建了丢失的文件夹和文件:
default
的文件夹default
config.json
Powershell
docker-machine rm -f default
PS E:\workspace\hubbles\sources> docker-machine rm -f default
About to remove default
WARNING: This action will delete both local reference and remote instance.
Error removing host "default": Error getting migrated host: unexpected end of JSON input
Successfully removed default
PS E:\workspace\hubbles\sources> docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
PS E:\workspace\hubbles\sources>
@filipegorges
感谢您的回复! 我有这个完全相同的问题。
我已经尝试了您所说的内容,但是没有用。 但是多亏了您,我再次调查了它。
对于其他遇到此问题,但在添加config.json
文件时仍然无法删除计算机的人:
检查VBoxHeadless.exe
是否正在运行(使用任务管理器),这可能是使用计算机文件夹中的文件。
杀死它,确保您具有config.json
文件并删除->
Successfully removed default
Windows 10专业版上的相同问题。 我无法使用任何一种解决方案来解决此问题。 VBoxHeadless.exe
没有运行。
谢谢@rdhaese ,它对我
我在Windows 7计算机中使用docker工具箱,再次卸载和安装docker工具箱为我解决了此问题。 :)
删除C:\ Users \
重新启动对我有效virtualbox 6.1
谢谢...对我有用
最有用的评论
@filipegorges
感谢您的回复! 我有这个完全相同的问题。
我已经尝试了您所说的内容,但是没有用。 但是多亏了您,我再次调查了它。
对于其他遇到此问题,但在添加
config.json
文件时仍然无法删除计算机的人:检查
VBoxHeadless.exe
是否正在运行(使用任务管理器),这可能是使用计算机文件夹中的文件。杀死它,确保您具有
config.json
文件并删除->Successfully removed default