How to run docker-machine create on OS X?

I started Docker and now follow the tutorial, but as far as I know, I could not run the docker-machine on OS X.

The documentation states that to create a local virtual machine, you run the following command:

 docker-machine create --driver virtualbox manager 

However, this command does not work on 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 virtual boxing; however, the other page clearly states that you should not install it on the local computer:

VirtualBox prior to version 4.3.30 must NOT be installed (it is not compatible with Docker for Mac)

Note. If your system does not meet these requirements, you can install the Docker Toolbox, which uses Oracle VirtualBox instead of HyperKit.

Therefore, I installed only Docker for Mac, not virtualbox. So what am I missing here? On the sample page, you can run the tutorial on OS X, so I wonder how I can proceed ...

You can continue and run this example using Docker for Mac, Docker for Windows, or Docker for Linux.

+6
source share
2 answers

I had the same problem today and resolved it by installing VirtualBox as an extra step after installing Docker for Mac (I did this with brew cask install virtualbox )

I don’t remember to do an additional installation earlier, but maybe I already had VirtualBox installed because of another tool (for example, Vagrant). Anyway, this is explained in the Docker Machine documentation:

If you are using Docker for Mac

Docker for Mac uses HyperKit, an easy macOS virtualization solution built on the basis of Hypervisor.framework in macOS 10.10 Yosemite and above.

Currently, the HyperKit driver does not create a driver for dockers. You will use the virtual machine driver to create local machines. (See Docker Machine Driver for Oracle VirtualBox.) Note that you can run both HyperKit and Oracle VirtualBox on the same system. To learn more, see Docker for Mac vs. Docker Toolbox

  • Make sure you have the latest version of VirtualBox installed on your system (as part of an earlier Toolbox installation or installation guide) .
+15
source

I had the same problem. In the same place ;-) For me, the xhyve driver worked, available from https://github.com/zchee/docker-machine-driver-xhyve . In short: brew install docker-machine-driver-xhyve

You are notified that some links need to be created manually, so copy them and run sudo chown root: wheel / usr / local / opt / docker-machine-driver-xhyve / bin / docker-machine-driver-xhyve sudo chown root: wheel / usr / local / opt / docker-machine-driver-xhyve / bin / docker-machine-driver-xhyve

Create: docker-machine create --driver xhyve manager

Without VirtualBox. Im also using OS X 10.11.6.

+2
source

Source: https://habr.com/ru/post/1014750/


All Articles