Skip to content

Instantly share code, notes, and snippets.

@robb-romans
Created February 28, 2018 04:39
Show Gist options
  • Save robb-romans/a328e80d42d4ac3eacacb52046696bc5 to your computer and use it in GitHub Desktop.
Save robb-romans/a328e80d42d4ac3eacacb52046696bc5 to your computer and use it in GitHub Desktop.
OSX xhyve docker machine creation
 robb7848  ~  docker-machine create --driver xhyve test-xhyve
Creating CA: /Users/robb7848/.docker/machine/certs/ca.pem
Creating client certificate: /Users/robb7848/.docker/machine/certs/cert.pem
Running pre-create checks...
Creating machine...
(test-xhyve) Image cache directory does not exist, creating it at /Users/robb7848/.docker/machine/cache...
(test-xhyve) No default Boot2Docker ISO found locally, downloading the latest release...
(test-xhyve) Latest release for github.com/boot2docker/boot2docker is v18.02.0-ce
(test-xhyve) Downloading /Users/robb7848/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v18.02.0-ce/boot2docker.iso...
(test-xhyve) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
(test-xhyve) Copying /Users/robb7848/.docker/machine/cache/boot2docker.iso to /Users/robb7848/.docker/machine/machines/test-xhyve/boot2docker.iso...
(test-xhyve) Creating VM...
(test-xhyve) /dev/disk2 /Users/robb7848/.docker/machine/machines/test-xhyve/b2d-image
(test-xhyve) "disk2" unmounted.
(test-xhyve) "disk2" ejected.
(test-xhyve) Generating 20000MB disk image...
(test-xhyve) created: /Users/robb7848/.docker/machine/machines/test-xhyve/root-volume.sparsebundle
(test-xhyve) Creating SSH key...
(test-xhyve) Fix file permission...
(test-xhyve) Generate UUID...
(test-xhyve) Convert UUID to MAC address...
(test-xhyve) Starting test-xhyve...
(test-xhyve) Waiting for VM to come online...
(test-xhyve) Waiting on a pseudo-terminal to be ready... done
(test-xhyve) Hook up your terminal emulator to /dev/ttys010 in order to connect to your VM
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env test-xhyve
 robb7848  ~ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment