Signed-off-by: gwx296173 <gaojing3@huawei.com>
| ... | ... |
@@ -19,6 +19,69 @@ parent = "smn_cli" |
| 19 | 19 |
--no-trunc=false Don't truncate output |
| 20 | 20 |
-s, --stars=0 Only displays with at least x stars |
| 21 | 21 |
|
| 22 |
+## Examples |
|
| 23 |
+ |
|
| 24 |
+### Search images by keywords |
|
| 25 |
+ |
|
| 26 |
+ $ docker search busybox |
|
| 27 |
+ NAME DESCRIPTION STARS OFFICIAL AUTOMATED |
|
| 28 |
+ busybox Busybox base image. 316 [OK] |
|
| 29 |
+ progrium/busybox 50 [OK] |
|
| 30 |
+ radial/busyboxplus Full-chain, Internet enabled, busybox made... 8 [OK] |
|
| 31 |
+ odise/busybox-python 2 [OK] |
|
| 32 |
+ azukiapp/busybox This image is meant to be used as the base... 2 [OK] |
|
| 33 |
+ ofayau/busybox-jvm Prepare busybox to install a 32 bits JVM. 1 [OK] |
|
| 34 |
+ shingonoide/archlinux-busybox Arch Linux, a lightweight and flexible Lin... 1 [OK] |
|
| 35 |
+ odise/busybox-curl 1 [OK] |
|
| 36 |
+ ofayau/busybox-libc32 Busybox with 32 bits (and 64 bits) libs 1 [OK] |
|
| 37 |
+ peelsky/zulu-openjdk-busybox 1 [OK] |
|
| 38 |
+ skomma/busybox-data Docker image suitable for data volume cont... 1 [OK] |
|
| 39 |
+ elektritter/busybox-teamspeak Leightweight teamspeak3 container based on... 1 [OK] |
|
| 40 |
+ socketplane/busybox 1 [OK] |
|
| 41 |
+ oveits/docker-nginx-busybox This is a tiny NginX docker image based on... 0 [OK] |
|
| 42 |
+ ggtools/busybox-ubuntu Busybox ubuntu version with extra goodies 0 [OK] |
|
| 43 |
+ nikfoundas/busybox-confd Minimal busybox based distribution of confd 0 [OK] |
|
| 44 |
+ openshift/busybox-http-app 0 [OK] |
|
| 45 |
+ jllopis/busybox 0 [OK] |
|
| 46 |
+ swyckoff/busybox 0 [OK] |
|
| 47 |
+ powellquiring/busybox 0 [OK] |
|
| 48 |
+ williamyeh/busybox-sh Docker image for BusyBox's sh 0 [OK] |
|
| 49 |
+ simplexsys/busybox-cli-powered Docker busybox images, with a few often us... 0 [OK] |
|
| 50 |
+ fhisamoto/busybox-java Busybox java 0 [OK] |
|
| 51 |
+ scottabernethy/busybox 0 [OK] |
|
| 52 |
+ marclop/busybox-solr |
|
| 53 |
+ |
|
| 54 |
+This example will display images with the name containing busybox. |
|
| 55 |
+ |
|
| 56 |
+### Search images by limiting stars' number(-s OR --stars) |
|
| 57 |
+ |
|
| 58 |
+ $ docker search --stars 3 busybox |
|
| 59 |
+ NAME DESCRIPTION STARS OFFICIAL AUTOMATED |
|
| 60 |
+ busybox Busybox base image. 325 [OK] |
|
| 61 |
+ progrium/busybox 50 [OK] |
|
| 62 |
+ radial/busyboxplus Full-chain, Internet enabled, busybox made... 8 [OK] |
|
| 63 |
+ |
|
| 64 |
+This example will display images with the name containing busybox and at least 3 stars. |
|
| 65 |
+ |
|
| 66 |
+### Search automated images(--automated) |
|
| 67 |
+ |
|
| 68 |
+ $ docker search --stars=3 --automated=true busybox |
|
| 69 |
+ NAME DESCRIPTION STARS OFFICIAL AUTOMATED |
|
| 70 |
+ progrium/busybox 50 [OK] |
|
| 71 |
+ radial/busyboxplus Full-chain, Internet enabled, busybox made... 8 [OK] |
|
| 72 |
+ |
|
| 73 |
+This example will display images with at least 3 stars and automated builds. |
|
| 74 |
+ |
|
| 75 |
+### Fully display 'DESCRIPTION'(--no-trunc=true) |
|
| 76 |
+ |
|
| 77 |
+ $ docker search --stars=3 --no-trunc=true busybox |
|
| 78 |
+ NAME DESCRIPTION STARS OFFICIAL AUTOMATED |
|
| 79 |
+ busybox Busybox base image. 325 [OK] |
|
| 80 |
+ progrium/busybox 50 [OK] |
|
| 81 |
+ radial/busyboxplus Full-chain, Internet enabled, busybox made from scratch. Comes in git and cURL flavors. 8 [OK] |
|
| 82 |
+ |
|
| 83 |
+This example will display images with at least 3 stars and the console output isn't truncated. |
|
| 84 |
+ |
|
| 22 | 85 |
Search [Docker Hub](https://hub.docker.com) for images |
| 23 | 86 |
|
| 24 | 87 |
See [*Find Public Images on Docker Hub*](../../userguide/dockerrepos.md#searching-for-images) for |