如何解决 VBoxManage 未找到问题

Kiv*_*ivi 6 virtualbox docker docker-machine

我在 Windows 7 机器上使用 oracle virtual box 5.2.8 来使用 docker。由于我想使用docker swarm,所以我想创建一些docker机器。

我尝试使用以下命令创建 docker 机器:

sudo docker-machine create --driver virtualbox manager1
Run Code Online (Sandbox Code Playgroud)

但我面临的问题是:

Running pre-create checks...
Error creating machine: Error with pre-create check: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
Run Code Online (Sandbox Code Playgroud)

在我的机器 C 驱动器中,VBoxManage.exe 文件存在于路径“C:\Program Files\Oracle\VirtualBox”中。

当我执行命令"which VBoxManage" 时,它只是进入下一行而没有任何输出或问题。然后执行“type VBoxManage”我面对“-bash:type:VBoxManage:not found”。

由于我是 docker 和 virtual box 的新手,所以我一无所知。如果我错过任何要点以及如何继续使用 docker-machine 命令,请提供输入。谢谢!