From 3d56a87539258ded988bd4ec64b254953cd53d8e Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Tue, 8 Dec 2015 17:31:20 +0530 Subject: [PATCH] Update docs with examples for `dm ls --filter`. This is a follow-up for PR #2310. Signed-off-by: Anil Belur --- docs/reference/ls.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/reference/ls.md b/docs/reference/ls.md index f74e12c70b..113e4427c1 100644 --- a/docs/reference/ls.md +++ b/docs/reference/ls.md @@ -27,9 +27,10 @@ than one filter, then pass multiple flags (e.g. `--filter "foo=bar" --filter "bi The currently supported filters are: - driver (driver name) -- swarm (swarm master's name) -- 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) +- swarm (swarm master's name) +- 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) +- label (Machine created with `--engine-label` option, can be filtered with `label=[=]`) ## Examples @@ -43,3 +44,8 @@ The currently supported filters are: $ docker-machine ls --filter driver=virtualbox --filter state=Stopped NAME ACTIVE DRIVER STATE URL SWARM 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