Installing Docker on OS X Homebrew

Everybody is talking docker, bsd jail, container virtualization and that it is easy, great and all…
I got infected, too.
But since docker is a linux thing there’re a few steps required to get it going on OS X. And because i really like homebrew to manage software on my apple boxes and will show you the super easy peasy way to use docker
This will summarize the steps required to get docker up and running.

Prepare Homebrew (If it is not already installed head over to Using Homebrew to install software with OS X

[mupfel@volkers-imac]$~ > brew update
Already up-to-date.
[mupfel@volkers-imac]$~ > brew search docker
boot2docker docker

Install docker

[mupfel@volkers-imac]$~ > brew install boot2docker
==> Installing boot2docker dependency: docker
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/docker-1.1.2.mavericks.bottle.tar.gz
######################################################################## 100,0%
==> Pouring docker-1.1.2.mavericks.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d

zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Summary

/usr/local/Cellar/docker/1.1.2: 9 files, 9,8M
==> Installing boot2docker
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/boot2docker-1.1.2.mavericks.bottle.tar.gz
######################################################################## 100,0%
==> Pouring boot2docker-1.1.2.mavericks.bottle.tar.gz
/usr/local/Cellar/boot2docker/1.1.2: 2 files, 7,0M
[mupfel@volkers-imac]$~ >

Voila – just took a few seconds

Verify install was ok

[mupfel@volkers-imac]$~ > boot2docker version
Client version: v1.1.2
Git commit: a229ac1
[mupfel@volkers-imac]$~ >

Cool, lets use it!

Currently there seems to be an issue with docker + virtualbox.
i updated virtualbox to the latest version and will be back as soon as the problem(s) are solved.

Advertisements

About javavolker71

when i do not write posts on this blog, don't work on or try to break my code i'm spending a reasonable amount of time
This entry was posted in CLI, OS X and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s