


# Run this command to configure your shell: Set -gx DOCKER_CERT_PATH "/Users/Samantha/.docker/machine/machines/default" Once the host is up and running, run docker-machine env default and add the environment variables it lists to your current working environment (there may be instructions here on how to get this stuff to get automatically loaded into your shell on start-up). This is going to use the driver that was installed in the previous step to create a new Docker host. With all the components install, you can go ahead and run the command to setup a new host: docker-machine create -driver xhyve default. To install, run brew install docker-machine-driver-xhyve and follow the additional install instructions that are presented at the end of the install process (also find them here).

Luckily I was able to find an existing project that allows for this framework to be used as the virtual machine driver: docker-machine-driver-xhyve. This is something that I wanted to take advantage of, thus avoiding the need to install additional kernel extensions to run the virtual machines. However, macOS comes with a special framework (amework) that allows you to create and run virtualized systems from the userland. Often you will use VirtualBox/VMWare/Parallels/etc to provide the base for the virtual machine to run on. The driver does the work of interfacing with the software that runs the virtual machine. To create a virtual machine, you need a driver for it. This tool is used to create and setup virtual machines and is not bundled with the install of Docker, so run brew install docker-machine. This step is a given, brew install docker to get Docker installed locally. This guide provides an alternative way to get the same support without their application. Note: This is entirely for personal usage, I would recommend you use their official Mac app (which does provide the same support through amework) for anything you plan to put into production. This was why I choose to install via Homebrew rather than attempting to install the Docker Mac App. I try to use Homebrew to install everything I can as it gets managed for me. Yesterday (February 26, 2017) I spent some time trying to learn how to use Docker and getting it setup on my computer, this post documents what I did to get it working as there were no straight-forward guides on this process. Setting up Docker on macOS Setting up Docker on macOS
