mirror of https://github.com/docker/docs.git
Merge pull request #177 from nathanleclaire/readme_console
Add console highlighting to README
This commit is contained in:
commit
e793b1cef0
58
README.md
58
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:
|
It works a bit like this:
|
||||||
|
|
||||||
$ machine create -d virtualbox dev
|
```console
|
||||||
[info] Downloading boot2docker...
|
$ machine create -d virtualbox dev
|
||||||
[info] Creating SSH key...
|
[info] Downloading boot2docker...
|
||||||
[info] Creating VirtualBox VM...
|
[info] Creating SSH key...
|
||||||
[info] Starting VirtualBox VM...
|
[info] Creating VirtualBox VM...
|
||||||
[info] Waiting for VM to start...
|
[info] Starting VirtualBox VM...
|
||||||
[info] "dev" has been created and is now the active host. Docker commands will now run against that host.
|
[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
|
$ machine ls
|
||||||
NAME ACTIVE DRIVER STATE URL
|
NAME ACTIVE DRIVER STATE URL
|
||||||
dev * virtualbox Running tcp://192.168.99.100:2375
|
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
|
$ docker run busybox echo hello world
|
||||||
Unable to find image 'busybox' locally
|
Unable to find image 'busybox' locally
|
||||||
Pulling repository busybox
|
Pulling repository busybox
|
||||||
e72ac664f4f0: Download complete
|
e72ac664f4f0: Download complete
|
||||||
511136ea3c5a: Download complete
|
511136ea3c5a: Download complete
|
||||||
df7546f9f060: Download complete
|
df7546f9f060: Download complete
|
||||||
e433a6c5b276: Download complete
|
e433a6c5b276: Download complete
|
||||||
hello world
|
hello world
|
||||||
|
|
||||||
$ machine create -d digitalocean --digitalocean-access-token=... staging
|
$ machine create -d digitalocean --digitalocean-access-token=... staging
|
||||||
[info] Creating SSH key...
|
[info] Creating SSH key...
|
||||||
[info] Creating Digital Ocean droplet...
|
[info] Creating Digital Ocean droplet...
|
||||||
[info] Waiting for SSH...
|
[info] Waiting for SSH...
|
||||||
[info] "staging" has been created and is now the active host. Docker commands will now run against that host.
|
[info] "staging" has been created and is now the active host. Docker commands will now run against that host.
|
||||||
|
|
||||||
$ machine ls
|
$ machine ls
|
||||||
NAME ACTIVE DRIVER STATE URL
|
NAME ACTIVE DRIVER STATE URL
|
||||||
dev virtualbox Running tcp://192.168.99.108:2376
|
dev virtualbox Running tcp://192.168.99.108:2376
|
||||||
staging * digitalocean Running tcp://104.236.37.134: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).
|
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).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue