Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path" Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path" docker docker

Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"


Yes you are absolutely correct. You need to install VirtualBox first of all.

You can do it by running yum install virtualbox for CentOS or

sudo apt-get install virtualbox for Ubuntu

Do so and then run your code and you will be good to go


It's an issue with permissions. You've installed docker as sudo. You need to run

sudo docker-machine create --driver virtualbox host1

OR

sudo docker-compose up 

to get around this.


Being more specific about install VirtualBox on Mac Mojavi.

  1. After downloading the VirtualBox-6.0.6-130049-OSX.dmg, double-click to install

  2. Go to your applications folder and you will find the virtualbox.pkg like this:

    virtualbox.pkg

  3. Click on it to complete the installation.

  4. After install is complete, you should see VirtualBox in the applications folder like this:

    virtual box after installation completes

  5. Afterwards you should refresh your terminal and rerun your command.

    docker-machine create --driver virtualbox local-docker.