How to run “docker-machine create” in OS X?

前端 未结 3 1861
伪装坚强ぢ
伪装坚强ぢ 2021-02-01 07:04

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

3条回答
  •  盖世英雄少女心
    2021-02-01 07:38

    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:

    If you are using Docker for Mac

    Docker for Mac uses HyperKit, a lightweight macOS virtualization solution built on top of the Hypervisor.framework in macOS 10.10 Yosemite and higher.

    Currently, there is no docker-machine create driver for HyperKit, so you will use virtualbox driver to create local machines. (See the 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 VirtualBox correctly installed on your system (either as part of an earlier Toolbox install, or manual install).

提交回复
热议问题