docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.62k stars 1.97k forks source link

Error creating machine: Error in driver during machine creation: /usr/local/bin/VBoxManage sharedfolder add default --name hosthome --hostpath /home --automount failed: #4890

Open Marietto2008 opened 2 years ago

Marietto2008 commented 2 years ago

I'm trying to install and configure docker on FreeBSD but this is what happened at some point :

[zioma@lozioma ~]$ docker-machine create -d virtualbox default

Creating CA: /home/zioma/.docker/machine/certs/ca.pem Creating client certificate: /home/zioma/.docker/machine/certs/cert.pem Running pre-create checks... (default) Image cache directory does not exist, creating it at /home/zioma/.docker/machine/cache... (default) No default Boot2Docker ISO found locally, downloading the latest release... (default) Latest release for github.com/boot2docker/boot2docker is v19.03.12 (default) Downloading /home/zioma/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v19.03.12/boot2docker.iso... (default) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100% Creating machine... (default) Copying /home/zioma/.docker/machine/cache/boot2docker.iso to /home/zioma/.docker/machine/machines/default/boot2docker.iso... (default) Creating VirtualBox VM... (default) Creating SSH key... Error creating machine: Error in driver during machine creation: /usr/local/bin/VBoxManage sharedfolder add default --name hosthome --hostpath /home --automount failed: VBoxManage: error: Shared folder path '/home' is not a directory VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component SharedFolderWrap, interface ISharedFolder, callee nsISupports VBoxManage: error: Context: "CreateSharedFolder(Bstr(pszName).raw(), Bstr(szAbsHostPath).raw(), fWritable, fAutoMount, Bstr(pszAutoMountPoint).raw())" at line 1194 of file VBoxManageMisc.cpp