I started Docker and am now following the tutorial, but for all I know I couldn't run the docker-machine
command on OS X.
The documentation states that you run the following command to create a local virtual machine:
docker-machine create --driver virtualbox manager
However, this command doesn't work in OS X (11.6), with the following error:
Running pre-create checks...
Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"
I tried to install the virtualbox; however, another page clearly states that you must not install it on your local machine:
VirtualBox prior to version 4.3.30 must NOT be installed (it is incompatible with Docker for Mac)
Note: If your system does not satisfy these requirements, you can install Docker Toolbox, which uses Oracle VirtualBox instead of HyperKit.
So I only installed Docker for Mac and not virtualbox. So what am I missing here? The example page says you can run the tutorial on OS X, so I wonder how I can proceed...
You can follow along and run this example using Docker for Mac, Docker for Windows or Docker for Linux.
I had the same issue. At the same spot ;-) For me the xhyve driver, available from https://github.com/zchee/docker-machine-driver-xhyve, worked. In short:
You get a notice some links need to be created manually, so copy those and execute
Create:
Without VirtualBox. Im using OS X 10.11.6, too.
I had the same issue today and resolved it by installing VirtualBox as an additional step after installing Docker for Mac (I did so with
brew cask install virtualbox
)I don't recall having to do the extra install previously, but maybe I already had VirtualBox already installed because of another tool (like Vagrant). Anyway, this is explained in the Docker Machine documentation: