Merge pull request #2301 from skatsuta/doc-inactive-hyphen

docs: show "-" for "inactive" machines
This commit is contained in:
Olivier Gambier 2015-11-16 09:13:14 +01:00
commit 15fecaec59
6 changed files with 13 additions and 13 deletions

View File

@ -42,7 +42,7 @@ To see how to connect Docker to this machine, run: docker-machine env staging
$ docker-machine ls $ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM NAME ACTIVE DRIVER STATE URL SWARM
dev virtualbox Running tcp://192.168.99.127:2376 dev - virtualbox Running tcp://192.168.99.127:2376
staging * digitalocean Running tcp://104.236.253.181:2376 staging * digitalocean Running tcp://104.236.253.181:2376
``` ```

View File

@ -81,7 +81,7 @@ the last section. If we look at `docker-machine ls`, we'll see it is now the
``` ```
$ docker-machine ls $ docker-machine ls
NAME ACTIVE DRIVER STATE URL NAME ACTIVE DRIVER STATE URL
dev virtualbox Running tcp://192.168.99.103:2376 dev - virtualbox Running tcp://192.168.99.103:2376
staging * digitalocean Running tcp://104.236.50.118:2376 staging * digitalocean Running tcp://104.236.50.118:2376
``` ```

View File

@ -56,7 +56,7 @@ command again:
``` ```
$ docker-machine ls $ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM NAME ACTIVE DRIVER STATE URL SWARM
dev virtualbox Running tcp://192.168.99.100:2376 dev - virtualbox Running tcp://192.168.99.100:2376
``` ```
Next, as noted in the output of the `docker-machine create` command, we have to Next, as noted in the output of the `docker-machine create` command, we have to

View File

@ -16,10 +16,10 @@ See which machine is "active" (a machine is considered active if the
``` ```
$ docker-machine ls $ docker-machine ls
NAME ACTIVE DRIVER STATE URL NAME ACTIVE DRIVER STATE URL
dev virtualbox Running tcp://192.168.99.103:2376 dev - virtualbox Running tcp://192.168.99.103:2376
staging * digitalocean Running tcp://104.236.50.118:2376 staging * digitalocean Running tcp://104.236.50.118:2376
$ echo $DOCKER_HOST $ echo $DOCKER_HOST
tcp://104.236.50.118:2376 tcp://104.236.50.118:2376
$ docker-machine active $ docker-machine active
staging staging
``` ```

View File

@ -38,14 +38,14 @@ The currently supported filters are:
``` ```
$ docker-machine ls $ docker-machine ls
NAME ACTIVE DRIVER STATE URL NAME ACTIVE DRIVER STATE URL
dev virtualbox Stopped dev - virtualbox Stopped
foo0 virtualbox Running tcp://192.168.99.105:2376 foo0 - virtualbox Running tcp://192.168.99.105:2376
foo1 virtualbox Running tcp://192.168.99.106:2376 foo1 - virtualbox Running tcp://192.168.99.106:2376
foo2 * virtualbox Running tcp://192.168.99.107:2376 foo2 * virtualbox Running tcp://192.168.99.107:2376
``` ```
``` ```
$ docker-machine ls --filter driver=virtualbox --filter state=Stopped $ docker-machine ls --filter driver=virtualbox --filter state=Stopped
NAME ACTIVE DRIVER STATE URL SWARM NAME ACTIVE DRIVER STATE URL SWARM
dev virtualbox Stopped dev - virtualbox Stopped
``` ```

View File

@ -17,10 +17,10 @@ on the cloud provider or virtualization management platform.
``` ```
$ docker-machine ls $ docker-machine ls
NAME ACTIVE DRIVER STATE URL NAME ACTIVE DRIVER STATE URL
foo0 virtualbox Running tcp://192.168.99.105:2376 foo0 - virtualbox Running tcp://192.168.99.105:2376
foo1 virtualbox Running tcp://192.168.99.106:2376 foo1 - virtualbox Running tcp://192.168.99.106:2376
$ docker-machine rm foo1 $ docker-machine rm foo1
$ docker-machine ls $ docker-machine ls
NAME ACTIVE DRIVER STATE URL NAME ACTIVE DRIVER STATE URL
foo0 virtualbox Running tcp://192.168.99.105:2376 foo0 - virtualbox Running tcp://192.168.99.105:2376
``` ```