Skip to content

Instantly share code, notes, and snippets.

@joemiller
Created January 26, 2016 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemiller/ee3ccb60d87a02ac56af to your computer and use it in GitHub Desktop.
Save joemiller/ee3ccb60d87a02ac56af to your computer and use it in GitHub Desktop.
macbook-joe git/coreos/coreos-xhyve ‹master› » docker-machine create -d xhyve xhyve-test
Running pre-create checks...
Creating machine...
(xhyve-test) Copying /Users/joe/.docker/machine/cache/boot2docker.iso to /Users/joe/.docker/machine/machines/xhyve-test/boot2docker.iso...
(xhyve-test) Creating VM...
(xhyve-test) Extracting vmlinuz64 and initrd.img from boot2docker.iso...
(xhyve-test) /dev/disk3 /Users/joe/.docker/machine/machines/xhyve-test/b2d-image
(xhyve-test) "disk3" unmounted.
(xhyve-test) "disk3" ejected.
(xhyve-test) Generating 20000MB disk image...
(xhyve-test) created: /Users/joe/.docker/machine/machines/xhyve-test/root-volume.sparsebundle
(xhyve-test) Creating SSH key...
(xhyve-test) Fix file permission...
(xhyve-test) Generate UUID...
(xhyve-test) Convert UUID to MAC address...
(xhyve-test) Starting xhyve-test...
(xhyve-test) Waiting for VM to come online...
(xhyve-test) Waiting on a pseudo-terminal to be ready... done
(xhyve-test) 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...
Machine is running, waiting for SSH to be available...
Detecting operating system of created instance...
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 Docker to this machine, run: docker-machine env xhyve-test
macbook-joe git/coreos/coreos-xhyve ‹master› » eval `docker-machine env xhyve-test`
macbook-joe git/coreos/coreos-xhyve ‹master› » docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
macbook-joe git/coreos/coreos-xhyve ‹master› » docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM ERRORS
default - virtualbox Stopped
xhyve-test * xhyve Running tcp://192.168.64.3:2376
macbook-joe git/coreos/coreos-xhyve ‹master› » docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
b901d36b6f2f: Pull complete
0a6ba66e537a: Pull complete
Digest: sha256:8be990ef2aeb16dbcb9271ddfe2610fa6658d13f6dfb8bc72074cc1ca36966a7
Status: Downloaded newer image for hello-world:latest
Hello from Docker.
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker Hub account:
https://hub.docker.com
For more examples and ideas, visit:
https://docs.docker.com/userguide/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment