I try to create a virtualbox using docker machine:

sudo docker-machine create --driver virtualbox default

and get this error:

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

VirtualBox is installed and I use it often.

> which VirtualBox
/usr/bin/VirtualBox

PATH variable contains /usr/bin

I have reinstalled both VirtualBox and Docker several times but it did not help.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

I would recommend taking a look at this reported Docker issue here:

https://github.com/docker/machine/issues/4590

The suggested fix is the following:

I had the same issue on 18.04, and here were the steps I took to resolve it.

  • Reinstalled virtualbox
  • Renamed VBoxManage to match the casing
  • Followed this guide to reinstall Docker Machine.
  • Reinstalled bash completion scripts in etc/bash_completion.d/
  • sudo docker-machine create --driver virtualbox default

Regards,
Bobby

Submit an Answer