Goal
Get Docker running under OSX.
Environment
OSX Mavericks
Macbook Retina
Understanding the tools
- Vagrant is a tool to provision VMs.
- Virtualbox is VM software.
- CoreOS is an operating system based on linux that’s all about running docker.
Install VirtualBox + Vagrant
Install VirtualBox via VirtualBox OSX installer
Install Vagrant via Vagrant OSX installer (I used version 1.6.2)
Vagrant Smoke Test: run Ubuntu Precise
To make sure Vagrant is installed correctly, run the following commands to see if Ubuntu Precise comes up and you are able to ssh into it.
1 2 3 |
|
If that doesn’t work, you should probably fix it before moving on. Otherwise, keep reading.
Install/Run CoreOS
1 2 3 |
|
SSH into CoreOS
1
|
|
Run stock ubuntu docker image
1
|
|
After running this, you should be ssh’d inside of an Ubuntu shell, running under docker (running inside of VirtualBox .. etc, all the way up the onion)