简体   繁体   English

在没有Docker Toolbox的OSX上安装docker-machine

[英]Install docker-machine on OSX WITHOUT Docker Toolbox

Am I correct to assume that installing Docker Toolbox is now the required method for installing docker-machine on OSX? 我是否正确地假设安装Docker Toolbox现在是在OSX上安装docker-machine所需的方法? I have a script that I've been using for onboarding my team of developers, which installs docker related tools like docker-machine, but it pulls it in through curl. 我有一个脚本,我一直用于入门我的开发团队,它安装了docker-machine之类的docker相关工具,但它通过curl将其拉入。 This stopped working with the latest version. 这已停止使用最新版本。 All their documentation says I need to install Docker Toolbox, with no indication of an alternative. 他们所有的文档都说我需要安装Docker Toolbox,没有任何替代指示。 Is there still a way to install it through the command line? 还有办法通过命令行安装它吗?

I installed virtualbox, docker, docker-machine and docker-compose all via homebrew , and worked like a charm to me. 我通过自制软件安装了virtualbox,docker,docker-machine和docker-compose,并且像我一样工作。

$ brew install docker docker-compose docker-machine

if you don't have installed virtualbox, you could install it using homebrew cask . 如果您没有安装virtualbox,可以使用homebrew cask安装它。

$ brew cask install virtualbox

One important thing you obtain when you installing it this way, is the bash completion. 当你以这种方式安装时,你获得的一件重要事情就是bash完成。 You need to install bash-completion, previously, for this benefit. 您需要先安装bash-completion以获得此优势。

$ brew install bash-completion

Answered my own question. 回答了我自己的问题。 It's undocumented, but if you go to their github page, then click on releases, you'll see all the latest releases for the OS you're looking for. 它没有文档,但如果你去他们的github页面,然后点击发布,你会看到你正在寻找的操作系统的所有最新版本。 https://github.com/docker/machine/releases . https://github.com/docker/machine/releases Find the download you need, then run this: 找到您需要的下载,然后运行:

$ curl -L https://github.com/docker/machine/releases/download/v0.4.0/docker-machine_darwin-amd64 > /usr/local/bin/docker-machine
$ chmod +x /usr/local/bin/docker-machine

您也可以使用Homebrew安装它

$ brew install docker-machine

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM