亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

docker?search命令如何使用

發布時間:2023-02-14 09:42:45 來源:億速云 閱讀:162 作者:iii 欄目:開發技術

本文小編為大家詳細介紹“docker search命令如何使用”,內容詳細,步驟清晰,細節處理妥當,希望這篇“docker search命令如何使用”文章能幫助大家解決疑惑,下面跟著小編的思路慢慢深入,一起來學習新知識吧。

一、docker search 命令選項

命令選項描述
–filter , -f根據給定的條件進行過濾
–format自定義打印格式
–limit顯示搜索結果,默認值25
–no-trunc回顯結果不進行截斷,全部顯示

二、docker search 使用實例

2.1 通過指定鏡像名搜索

[root@redrose2100 ~]# docker search busybox
NAME                                DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
busybox                             Busybox base image.                             2754      [OK]
radial/busyboxplus                  Full-chain, Internet enabled, busybox made f…   49                   [OK]
yauritux/busybox-curl               Busybox with CURL                               18
arm32v7/busybox                     Busybox base image.                             10
arm64v8/busybox                     Busybox base image.                             4
odise/busybox-curl                                                                  4                    [OK]
i386/busybox                        Busybox base image.                             3
p7ppc64/busybox                     Busybox base image for ppc64.                   2
s390x/busybox                       Busybox base image.                             2
prom/busybox                        Prometheus Busybox Docker base images           2                    [OK]
busybox42/zimbra-docker-centos      A Zimbra Docker image, based in ZCS 8.8.9 an…   2                    [OK]
joeshaw/busybox-nonroot             Busybox container with non-root user nobody     2
vukomir/busybox                     busybox and curl                                1
spotify/busybox                     Spotify fork of https://hub.docker.com/_/bus…   1
busybox42/haraka-docker-centos      CentOS Haraka build with spamassassin, redis…   1                    [OK]
ppc64le/busybox                     Busybox base image.                             1
amd64/busybox                       Busybox base image.                             1
busybox42/nginx_php-docker-centos   This is a nginx/php-fpm server running on Ce…   1                    [OK]
ibmcom/busybox-ppc64le                                                              0
busybox42/alpine-pod                                                                0
antrea/busybox                                                                      0
openebs/busybox-client                                                              0
ibmcom/busybox                                                                      0
rancher/busybox                                                                     0
ibmcom/busybox-amd64                                                                0
[root@redrose2100 ~]#

2.2 搜索結果不進行截斷顯示

[root@redrose2100 ~]# docker search busybox --no-trunc
NAME                                DESCRIPTION                                                                                 STARS     OFFICIAL   AUTOMATED
busybox                             Busybox base image.                                                                         2754      [OK]
radial/busyboxplus                  Full-chain, Internet enabled, busybox made from scratch. Comes in git and cURL flavors.     49                   [OK]
yauritux/busybox-curl               Busybox with CURL                                                                           18
arm32v7/busybox                     Busybox base image.                                                                         10
odise/busybox-curl                                                                                                              4                    [OK]
arm64v8/busybox                     Busybox base image.                                                                         4
i386/busybox                        Busybox base image.                                                                         3
p7ppc64/busybox                     Busybox base image for ppc64.                                                               2
s390x/busybox                       Busybox base image.                                                                         2
prom/busybox                        Prometheus Busybox Docker base images                                                       2                    [OK]
busybox42/zimbra-docker-centos      A Zimbra Docker image, based in ZCS 8.8.9 and CentOS 7.                                     2                    [OK]
joeshaw/busybox-nonroot             Busybox container with non-root user nobody                                                 2
vukomir/busybox                     busybox and curl                                                                            1
spotify/busybox                     Spotify fork of https://hub.docker.com/_/busybox/ for testing helios.                       1
busybox42/haraka-docker-centos      CentOS Haraka build with spamassassin, redis and some other things.  Experimental still..   1                    [OK]
ppc64le/busybox                     Busybox base image.                                                                         1
amd64/busybox                       Busybox base image.                                                                         1
busybox42/nginx_php-docker-centos   This is a nginx/php-fpm server running on CentOS 7.                                         1                    [OK]
ibmcom/busybox-ppc64le                                                                                                          0
antrea/busybox                                                                                                                  0
busybox42/alpine-pod                                                                                                            0
openebs/busybox-client                                                                                                          0
ibmcom/busybox                                                                                                                  0
rancher/busybox                                                                                                                 0
ibmcom/busybox-amd64                                                                                                            0
[root@redrose2100 ~]#

2.3 設置搜索結果只顯示10個

[root@redrose2100 ~]# docker search busybox --limit=10
NAME                     DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
busybox                  Busybox base image.                             2754      [OK]
radial/busyboxplus       Full-chain, Internet enabled, busybox made f…   49                   [OK]
yauritux/busybox-curl    Busybox with CURL                               18
vukomir/busybox          busybox and curl                                1
antrea/busybox                                                           0
ibmcom/busybox-amd64                                                     0
ibmcom/busybox-ppc64le                                                   0
rancher/busybox                                                          0
ibmcom/busybox                                                           0
openebs/busybox-client                                                   0
[root@redrose2100 ~]#

2.4 搜索結果過濾star收藏數量大于等于3個

[root@redrose2100 ~]# docker search busybox --filter stars=3
NAME                    DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
busybox                 Busybox base image.                             2754      [OK]
radial/busyboxplus      Full-chain, Internet enabled, busybox made f…   49                   [OK]
yauritux/busybox-curl   Busybox with CURL                               18
arm32v7/busybox         Busybox base image.                             10
odise/busybox-curl                                                      4                    [OK]
arm64v8/busybox         Busybox base image.                             4
i386/busybox            Busybox base image.                             3
[root@redrose2100 ~]#

2.5 搜索結果只列出自動構建的鏡像

[root@redrose2100 ~]# docker search busybox --filter is-automated=true
NAME                                DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
radial/busyboxplus                  Full-chain, Internet enabled, busybox made f…   49                   [OK]
odise/busybox-curl                                                                  4                    [OK]
busybox42/zimbra-docker-centos      A Zimbra Docker image, based in ZCS 8.8.9 an…   2                    [OK]
prom/busybox                        Prometheus Busybox Docker base images           2                    [OK]
busybox42/haraka-docker-centos      CentOS Haraka build with spamassassin, redis…   1                    [OK]
busybox42/nginx_php-docker-centos   This is a nginx/php-fpm server running on Ce…   1                    [OK]
[root@redrose2100 ~]#

2.6 搜索結果只列出官方鏡像

[root@redrose2100 ~]# docker search busybox --filter is-official=true
NAME      DESCRIPTION           STARS     OFFICIAL   AUTOMATED
busybox   Busybox base image.   2754      [OK]
[root@redrose2100 ~]#

2.7 搜索結果通過多個條件過濾

如下為過濾自動構建的并且收藏數量大于等于3的鏡像

[root@redrose2100 ~]# docker search busybox --filter is-automated=true --filter stars=3
NAME                 DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
radial/busyboxplus   Full-chain, Internet enabled, busybox made f…   49                   [OK]
odise/busybox-curl                                                   4                    [OK]
[root@redrose2100 ~]#

2.8 定制自定義打印輸出格式

docker search 可以通過 --format 參數定制自定義打印格式,可自定義的占位字段如下:

占位符描述
.Name鏡像名稱
.Description鏡像描述
.StarCount鏡像被收藏數量
.IsOfficial鏡像是否為官方鏡像,如果是現實“OK”
.IsAutomated鏡像是否為自動構建,如果是顯示“OK”

如下為搜索nginx鏡像,只顯示鏡像名稱和鏡像被收藏數量

[root@redrose2100 ~]# docker search --format "{{.Name}}: {{.StarCount}}" nginx
nginx: 17429
linuxserver/nginx: 178
bitnami/nginx: 140
ubuntu/nginx: 61
bitnami/nginx-ingress-controller: 20
rancher/nginx-ingress-controller: 11
webdevops/nginx: 10
ibmcom/nginx-ingress-controller: 4
bitnami/nginx-ldap-auth-daemon: 3
rancher/nginx: 2
kasmweb/nginx: 2
vmware/nginx: 2
rancher/nginx-ingress-controller-defaultbackend: 2
rapidfort/nginx: 2
bitnami/nginx-exporter: 2
wallarm/nginx-ingress-controller: 1
vmware/nginx-photon: 1
bitnami/nginx-intel: 1
rapidfort/nginx-ib: 0
ibmcom/nginx-ingress-controller-ppc64le: 0
rancher/nginx-conf: 0
rancher/nginx-ssl: 0
continuumio/nginx-ingress-ws: 0
rancher/nginx-ingress-controller-amd64: 0
ibmcom/nginx-ppc64le: 0
[root@redrose2100 ~]#

如下,格式化顯示鏡像名稱、鏡像被收藏數量、鏡像是否自動構建、鏡像是否官方

[root@redrose2100 ~]# docker search --format "table {{.Name}}\t\t{{.StarCount}}\t\t{{.IsAutomated}}\t\t{{.IsOfficial}}" nginx
NAME                                                        STARS               AUTOMATED             OFFICIAL
nginx                                                       17429                                     [OK]
linuxserver/nginx                                           178
bitnami/nginx                                               140                 [OK]
ubuntu/nginx                                                61
bitnami/nginx-ingress-controller                            20                  [OK]
rancher/nginx-ingress-controller                            11
webdevops/nginx                                             10                  [OK]
ibmcom/nginx-ingress-controller                             4
bitnami/nginx-ldap-auth-daemon                              3
rancher/nginx                                               2
kasmweb/nginx                                               2
vmware/nginx                                                2
rancher/nginx-ingress-controller-defaultbackend             2
rapidfort/nginx                                             2
bitnami/nginx-exporter                                      2
wallarm/nginx-ingress-controller                            1
vmware/nginx-photon                                         1
bitnami/nginx-intel                                         1
rapidfort/nginx-ib                                          0
rancher/nginx-conf                                          0
ibmcom/nginx-ingress-controller-ppc64le                     0
rancher/nginx-ssl                                           0
continuumio/nginx-ingress-ws                                0
rancher/nginx-ingress-controller-amd64                      0
ibmcom/nginx-ppc64le                                        0
[root@redrose2100 ~]#

讀到這里,這篇“docker search命令如何使用”文章已經介紹完畢,想要掌握這篇文章的知識點還需要大家自己動手實踐使用過才能領會,如果想了解更多相關內容的文章,歡迎關注億速云行業資訊頻道。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

教育| 剑川县| 贵定县| 金山区| 丰顺县| 通海县| 麻江县| 巧家县| 常德市| 滁州市| 陵川县| 广州市| 江山市| 手游| 祁阳县| 汉沽区| 册亨县| 无为县| 吉木萨尔县| 琼结县| 盘山县| 肇庆市| 庄浪县| 曲阳县| 湘潭市| 永川市| 石阡县| 山阳县| 罗城| 海淀区| 久治县| 台南市| 贵德县| 伽师县| 佛山市| 伊川县| 苏州市| 皋兰县| 乐亭县| 乐山市| 彩票|