Cannot create a virtualbox using docker-machine

Posted November 10, 2018 6.4k views
DockerUbuntu 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

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.

Submit an Answer
1 answer


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

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