Skip to content

Commit

Permalink
Fix filters displaying for docker search
Browse files Browse the repository at this point in the history
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
  • Loading branch information
yuexiao-wang committed Jul 14, 2017
1 parent e3746d3 commit 19c69df
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/reference/commandline/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ radial/busyboxplus Full-chain, Internet enabled, busybox made from scratch. Co
The flag `--limit` is the maximum number of results returned by a search. This value could
be in the range between 1 and 100. The default value of `--limit` is 25.


### Filtering

The filtering flag (`-f` or `--filter`) format is a `key=value` pair. If there is more
Expand All @@ -103,9 +102,8 @@ than one filter, then pass multiple flags (e.g. `--filter "foo=bar" --filter "bi
The currently supported filters are:

* stars (int - number of stars the image has)
* is-automated (true|false) - is the image automated or not
* is-official (true|false) - is the image official or not

* is-automated (boolean - true or false) - is the image automated or not
* is-official (boolean - true or false) - is the image official or not

#### stars

Expand All @@ -121,7 +119,6 @@ progrium/busybox 50
radial/busyboxplus Full-chain, Internet enabled, busybox made... 8 [OK]
```


#### is-automated

This example displays images with a name containing 'busybox'
Expand All @@ -140,6 +137,7 @@ radial/busyboxplus Full-chain, Internet enabled, busybox made... 8
This example displays images with a name containing 'busybox', at least
3 stars and are official builds:


```bash
$ docker search --filter "is-official=true" --filter "stars=3" busybox

Expand Down

0 comments on commit 19c69df

Please sign in to comment.