Report this

What is the reason for this report?

Cannot create a virtualbox using docker-machine

Posted on November 10, 2018

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.



This textbox defaults to using Markdown to format your answer.

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

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.