Mac OSX 安装Docker

原文地址:http://blog.javabien.net/2014/03/03/setup-docker-on-osx-the-no-brainer-way/

Setup docker on OSX, the no-brainer way

I’m working on a couple of blog posts that explain how to use docker on Google Compute Engine. As an appetizer, here’s how I installeddocker 0.8.0 on OSX, the no-brainer way:

First, install Homebrew

If it’s not done already, install Homebrew. You won’t regret it. It is as simple as that:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Install Virtualbox

With Homebrew, it’s trivial to install Virtualbox which is a prerequisite to running docker on OSX:

brew update
brew tap phinze/homebrew-cask
brew install brew-cask
brew cask install virtualbox

Install boot2docker

Boot2docker is a small script that helps download and setup a minimal Linux VM that will be in charge of running docker daemon.

brew install boot2docker
boot2docker init
boot2docker up
export DOCKER_HOST=tcp://localhost:4243

Install docker

brew install docker
docker version

Done!

More information can be found on docker’s official documentationand on boot2docker’s github. It includes, setting up port forwarding, folder sharing, explaining why we need boot2docker…

Now, enjoy!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值