Cannot create a virtualbox using docker-machine

November 10, 2018 2.2k views
Docker Ubuntu 18.04

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.

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

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!