Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * Virtualbox + Vagrant
- ```
- $ brew tap phinze/cask
- $ brew install brew-cask
- $ brew cask install virtualbox vagrant
- ```
- * Docker
- ```
- $ brew tap homebrew/binary
- $ brew install docker
- ```
- * Install boot2docker (not required, but nice to have while running on mac). Start with installing Go and setting up $GOPATH
- ```
- $ brew install go
- $ export PATH=$PATH:$GOPATH/bin
- ```
- * Installing boot2docker-cli. We choose to installing it directly via Go because the homebrew formula is currently broken for boot2docker v1.0.0
- ```
- $ go get github.com/boot2docker/boot2docker-cli
- $ boot2docker-cli version
- ```
- * Setting up the boot2docker
- ```
- $ boot2docker-cli init
- $ boot2docker-cli download
- $ boot2docker-cli up
- $ export DOCKER_HOST=tcp://:2375
- ```
- * To check whether it's setting up properly with an assigned IP
- ```
- $ boot2docker-cli ip
- ```
- * You can login to the boot2docker
- ```
- $ boot2docker-cli ssh
- ```
- > user: docker
- > pass: tcuser
- * Now you can use Docker natively on Mac
- ```
- $ docker info
- $ docker version
- $ docker pull ubuntu:14.04
- $ docker run -i -t ubuntu /bin/bash
- $ docker build -t <tag> <OSX-local path to folder with Dockerfile>
- $ docker run -i -t <tag> [<command>]
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement