Skip to content

Instantly share code, notes, and snippets.

@dayreiner
Last active November 9, 2020 13:48
Show Gist options
  • Save dayreiner/8b1aff3af708d47c74f5 to your computer and use it in GitHub Desktop.
Save dayreiner/8b1aff3af708d47c74f5 to your computer and use it in GitHub Desktop.
HOWTO: Docker 1.10.0-rc1 on OSX El Capitan with docker-compose 1.6.0-rc1 and docker-machine 0.6.0-rc1. Use Xhyve driver instead of virtualbox for performance.

Docker 1.10.0 RC1 with Docker Compose 0.6 and Docker Machine 1.6 and Xhyve on OSX

Updated install instructions for RC2 are available here

docker

The steps below will uninstall docker, docker-machine and docker-compose under OSX using virtualbox (via either brew or toolbox, or both), and replace them with the latest RC versions of docker, compose and machine using the Xhyve driver for better performance under OSX using Hypervisor.framework.


If you don't have homebrew already, install it

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

make sure old docker versions are removed

Remove toolbox via its uninstaller if you have it, as well as remove any versions installed via brew

brew uninstall docker docker-compose docker-machine
sudo sh -c "$(curl -fsSl https://raw.githubusercontent.com/docker/toolbox/master/osx/uninstall.sh)"

install docker OSX client v1.10.0-rc1

curl -L https://test.docker.com/builds/Darwin/x86_64/docker-1.10.0-rc1 >/usr/local/bin/docker
chmod +x /usr/local/bin/docker

install machine v0.6.0-rc1

curl -L https://github.com/docker/machine/releases/download/v0.6.0-rc1/docker-machine_darwin-amd64 >/usr/local/bin/docker-machine
chmod +x /usr/local/bin/docker-machine

install compose v1.6.0-rc1

curl -L https://github.com/docker/compose/releases/download/1.6.0-rc1/docker-compose-Darwin-x86_64 > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

install xhyve

brew install xhyve

install docker xhyve driver v0.2.2

curl -L https://github.com/zchee/docker-machine-driver-xhyve/releases/download/v0.2.2/docker-machine-driver-xhyve > /usr/local/bin/docker-machine-driver-xhyve
chmod +x /usr/local/bin/docker-machine-driver-xhyve
sudo chown root:wheel /usr/local/bin/docker-machine-driver-xhyve
sudo chmod u+s /usr/local/bin/docker-machine-driver-xhyve

create default docker machine using docker v1.10.0-rc1 boot2docker iso

docker-machine create default --driver xhyve --xhyve-experimental-nfs-share --xhyve-boot2docker-url https://github.com/tianon/boot2docker-legacy/releases/download/v1.10.0-rc1/boot2docker.iso

start docker-machine

If you used the machine name "default", there's no need to specify the default machine in 1.6.

docker-machine start

get env

eval $(docker-machine env)

test!

docker run hello-world

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment