Seven Story Rabbit Hole

Sometimes awesome things happen in deep rabbit holes. Or not.

   images

Docker on OSX

Docker.png

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

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
vagrant init precise32 http://files.vagrantup.com/precise32.box
vagrant up
vagrant ssh

If that doesn’t work, you should probably fix it before moving on. Otherwise, keep reading.

Install/Run CoreOS

1
2
3
git clone https://github.com/coreos/coreos-vagrant/
cd coreos-vagrant
vagrant up

SSH into CoreOS

1
vagrant ssh

Run stock ubuntu docker image

1
docker run -t -i ubuntu bash

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)

Comments