Setup docker on OSX

来源:互联网 发布:教学质量分析软件 编辑:程序博客网 时间:2024/05/21 19:37

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


As an appetizer, here’s how I installed docker0.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 updatebrew tap phinze/homebrew-caskbrew install brew-caskbrew 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 boot2dockerboot2docker initboot2docker upexport DOCKER_HOST=tcp://localhost:4243

Install docker

brew install dockerdocker version

Done!

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

Now, enjoy!


原创粉丝点击