在MACOSX 上安装Docker

注意MACOSX并不太适合部署DOCKER (在macosx上它似乎依赖于VBOX组件 ,或默认安装一个boot2docker-vm),如果你仅仅是测试或练习那么OK。

此处安装Docker主要依赖于homebrew,所以建议你的环境能正常访问BREW、GITHUB、SF等网站.


ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew tap phinze/homebrew-cask
brew install brew-cask
brew cask install virtualbox
brew install boot2docker
boot2docker init
boot2docker up


boot2docker up会要求你设置一系列环境变量,照做即可

brew install docker
docker version


docker目前在国内没有太好的mirror,我在这里主要还是依靠docker.com的原版镜像。


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *