adamkdean

software engineering

Install Docker on OSX

By Adam K Dean on

To install Docker on OSX, you're going to need to install a few prerequisites.

  1. Install Homebrew.
  2. Install VirtualBox.
  3. Install Vagrant.

Now we can finally install Docker. We also need to install boot2docker.

brew install docker
brew install boot2docker
boot2docker init
boot2docker up
export DOCKER_HOST=tcp://localhost:2375

And test it:

docker version

Bear in mind that if boot2docker has a different port than 2375, use the correct one, and don't put a trailing slash either.

Install Vagrant on OSX

By Adam K Dean on

We're going to install Vagrant on OSX using Homebrew.

If you don't already have it, install Homebrew on OSX.

Once you have it installed, install Vagrant like so:

brew install caskroom/cash/brew-cask
brew cask install vagrant

Simples.

Install VirtualBox on OSX

By Adam K Dean on

We're going to install VirtualBox on OSX using Homebrew.

If you don't already have it, install Homebrew on OSX.

Once you have it installed, install VirtualBox like so:

brew install caskroom/cash/brew-cask
brew cask install virtualbox

Easy peasy.

Install Homebrew on OSX

By Adam K Dean on

To install Homebrew on OSX, simply run this command in your terminal:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Now test it works:

brew --version

Before using it to install anything, be sure to quickly run:

brew doctor

For more information on Homebrew, visit the Homebrew wiki.

Install awscli on OSX

By Adam K Dean on

Installing awscli on OSX is easy. If you don't already have it, install pip (python's package manager).

Now, to install awscli, do this:

pip install awscli

Then configure it using:

aws configure

Now test it with:

aws ec2 describe-regions