Merge pull request #2525 from askb/doc_fix_ls

doc update for `dm ls --filter`
This commit is contained in:
David Gageot 2015-12-08 17:58:20 +01:00
commit 768418b98e
1 changed files with 9 additions and 3 deletions

View File

@ -30,6 +30,7 @@ The currently supported filters are:
- swarm (swarm master's name) - swarm (swarm master's name)
- state (`Running|Paused|Saved|Stopped|Stopping|Starting|Error`) - state (`Running|Paused|Saved|Stopped|Stopping|Starting|Error`)
- name (Machine name returned by driver, supports [golang style](https://github.com/google/re2/wiki/Syntax) regular expressions) - name (Machine name returned by driver, supports [golang style](https://github.com/google/re2/wiki/Syntax) regular expressions)
- label (Machine created with `--engine-label` option, can be filtered with `label=<key>[=<value>]`)
## Examples ## Examples
@ -43,3 +44,8 @@ The currently supported filters are:
$ 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
$ docker-machine ls --filter label=com.class.app=foo1 --filter label=com.class.app=foo2
NAME ACTIVE DRIVER STATE URL
foo1 - virtualbox Running tcp://192.168.99.105:2376
foo2 * virtualbox Running tcp://192.168.99.107:2376