0
讓我先告訴我能夠使用VirtualBox UI從Windows主機共享一個文件夾。 我只是想通過命令行來做同樣的事情,所以我不必每次都打開UI。我使用下面的命令來創建共享文件夾:通過VBoxManage命令在Windows主機上共享文件夾中的Docker問題
"C:/Program Files/Oracle/VirtualBox/VBoxManage" sharedfolder add default -name myNewDockerVolume -hostpath C:/Users/kishore/Documents/myNewDockerVolume
我也得到了下面這樣的錯誤:
$ "C:/Program Files/Oracle/VirtualBox/VBoxManage" sharedfolder add default -name myNewDockerVolume -hostpath C:/Users/kishore/Documents/myNewDockerVolume VBoxManage.exe: error: The machine 'default' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 1012 of file VBoxManageMisc.cpp
我只能看到一個現在泊塢窗機:
$ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS default * virtualbox Running tcp://192.168.99.100:2376 v1.10.1
我在這裏做錯了什麼?