From 37d358810ed57606c6073cd59939e62db48135a0 Mon Sep 17 00:00:00 2001 From: Nathan LeClaire Date: Tue, 30 Dec 2014 10:52:15 -0800 Subject: [PATCH] Add console highlighting to README Signed-off-by: Nathan LeClaire --- README.md | 58 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index ab773f56ee..507e138af6 100644 --- a/README.md +++ b/README.md @@ -4,39 +4,41 @@ Machine makes it really easy to create Docker hosts on local hypervisors and clo It works a bit like this: - $ machine create -d virtualbox dev - [info] Downloading boot2docker... - [info] Creating SSH key... - [info] Creating VirtualBox VM... - [info] Starting VirtualBox VM... - [info] Waiting for VM to start... - [info] "dev" has been created and is now the active host. Docker commands will now run against that host. +```console +$ machine create -d virtualbox dev +[info] Downloading boot2docker... +[info] Creating SSH key... +[info] Creating VirtualBox VM... +[info] Starting VirtualBox VM... +[info] Waiting for VM to start... +[info] "dev" has been created and is now the active host. Docker commands will now run against that host. - $ machine ls - NAME ACTIVE DRIVER STATE URL - dev * virtualbox Running tcp://192.168.99.100:2375 +$ machine ls +NAME ACTIVE DRIVER STATE URL +dev * virtualbox Running tcp://192.168.99.100:2375 - $ export DOCKER_HOST=`machine url` DOCKER_AUTH=identity +$ export DOCKER_HOST=`machine url` DOCKER_AUTH=identity - $ docker run busybox echo hello world - Unable to find image 'busybox' locally - Pulling repository busybox - e72ac664f4f0: Download complete - 511136ea3c5a: Download complete - df7546f9f060: Download complete - e433a6c5b276: Download complete - hello world +$ docker run busybox echo hello world +Unable to find image 'busybox' locally +Pulling repository busybox +e72ac664f4f0: Download complete +511136ea3c5a: Download complete +df7546f9f060: Download complete +e433a6c5b276: Download complete +hello world - $ machine create -d digitalocean --digitalocean-access-token=... staging - [info] Creating SSH key... - [info] Creating Digital Ocean droplet... - [info] Waiting for SSH... - [info] "staging" has been created and is now the active host. Docker commands will now run against that host. +$ machine create -d digitalocean --digitalocean-access-token=... staging +[info] Creating SSH key... +[info] Creating Digital Ocean droplet... +[info] Waiting for SSH... +[info] "staging" has been created and is now the active host. Docker commands will now run against that host. - $ machine ls - NAME ACTIVE DRIVER STATE URL - dev virtualbox Running tcp://192.168.99.108:2376 - staging * digitalocean Running tcp://104.236.37.134:2376 +$ machine ls +NAME ACTIVE DRIVER STATE URL +dev virtualbox Running tcp://192.168.99.108:2376 +staging * digitalocean Running tcp://104.236.37.134:2376 +``` Machine creates Docker hosts that are secure by default. The connection between the client and daemon is encrypted and authenticated using new identity-based authentication. If you'd like to learn more about this, it is being worked on in [a pull request on Docker](https://github.com/docker/docker/pull/8265).