Docker-docs-ja
17.06

Guide - ガイド

  • Get Docker - Docker を手に入れる
  • Get started - 始めましょう
  • ユーザガイド

Docker Compose

  • Docker Compose

Docker Hub

  • Docker Hub

Docker Machine

  • Docker Machine

Docker Toolbox

  • Docker Toolbox

コンポーネント・プロジェクト

  • Docker Registry
  • Docker Swarm

Docker について

  • リリース・ノート
  • 用語集
  • 日本語版について
  • Docker ドキュメント逆引きガイド
  • Docker ドキュメント日本語版 PDF ダウンロード

Docs アーカイブ

  • v17.06
  • v1.12
  • v1.11
  • v1.10
  • v1.9
Docker-docs-ja
  • Docs »
  • search
  • Edit on GitHub

search¶

使い方: docker search [オプション] 単語

Docker Hub のイメージを検索

  --filter=[]          次の条件をもとに出力をフィルタ:
                       - is-automated=(true|false)
                       - is-official=(true|false)
                       - stars=<数値> - イメージが持っている最新のスター「数」
  --help               使い方の表示
  --limit=25           出力結果の最大数
  --no-trunc           トランケート (truncate) を出力しない

Docker Hub のイメージを検索します。

共有イメージをコマンドラインで調べる詳細は、 Docker Hub で公開イメージを探す をご覧ください。

注釈

検索結果は 25 件までしか表示しません。

例¶

イメージ名で検索¶

この例は busybox を含むイメージを表示します。

$ docker search busybox
NAME                             DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
busybox                          Busybox base image.                             316       [OK]
progrium/busybox                                                                 50                   [OK]
radial/busyboxplus               Full-chain, Internet enabled, busybox made...   8                    [OK]
odise/busybox-python                                                             2                    [OK]
azukiapp/busybox                 This image is meant to be used as the base...   2                    [OK]
ofayau/busybox-jvm               Prepare busybox to install a 32 bits JVM.       1                    [OK]
shingonoide/archlinux-busybox    Arch Linux, a lightweight and flexible Lin...   1                    [OK]
odise/busybox-curl                                                               1                    [OK]
ofayau/busybox-libc32            Busybox with 32 bits (and 64 bits) libs         1                    [OK]
peelsky/zulu-openjdk-busybox                                                     1                    [OK]
skomma/busybox-data              Docker image suitable for data volume cont...   1                    [OK]
elektritter/busybox-teamspeak    Leightweight teamspeak3 container based on...   1                    [OK]
socketplane/busybox                                                              1                    [OK]
oveits/docker-nginx-busybox      This is a tiny NginX docker image based on...   0                    [OK]
ggtools/busybox-ubuntu           Busybox ubuntu version with extra goodies       0                    [OK]
nikfoundas/busybox-confd         Minimal busybox based distribution of confd     0                    [OK]
openshift/busybox-http-app                                                       0                    [OK]
jllopis/busybox                                                                  0                    [OK]
swyckoff/busybox                                                                 0                    [OK]
powellquiring/busybox                                                            0                    [OK]
williamyeh/busybox-sh            Docker image for BusyBox's sh                   0                    [OK]
simplexsys/busybox-cli-powered   Docker busybox images, with a few often us...   0                    [OK]
fhisamoto/busybox-java           Busybox java                                    0                    [OK]
scottabernethy/busybox                                                           0                    [OK]
marclop/busybox-solr

説明を省略せずに表示( --no-trunc ) ----------------------------------------k

この例は busybox を含むイメージを表示します。少なくとも3つのスターがあるイメージを、説明を省略せずに表示します。

$ docker search --stars=3 --no-trunc busybox
NAME                 DESCRIPTION                                                                               STARS     OFFICIAL   AUTOMATED
busybox              Busybox base image.                                                                       325       [OK]
progrium/busybox                                                                                               50                   [OK]
radial/busyboxplus   Full-chain, Internet enabled, busybox made from scratch. Comes in git and cURL flavors.   8                    [OK]

検索結果の上限( --limit )¶

--limit は検索結果で表示する最大行数です。この値は 1 から 100 までの範囲で指定が必要です。デフォルトの --limit 値は 25 です。

フィルタリング¶

フィルタリング・フラグ( -f か --filter )は キー=値 ペアの形式です。複数のフィルタを指定するには、フラグを複数回使います(例: --filter "foo=bar" --filter "bif=baz" )。

現在サポートしているフィルタは次の通りです:

  • stars (整数 - イメージが持つスター数)
  • is-automated(true|false)- イメージが自動構築されたかどうか
  • is-officieal(true|false)- イメージが公式かどうか

stars¶

この例は名前に busybox を含み、3つ以上のスターを持つイメージを表示します。

$ docker search --filter stars=3 busybox
NAME                 DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
busybox              Busybox base image.                             325       [OK]
progrium/busybox                                                     50                   [OK]
radial/busyboxplus   Full-chain, Internet enabled, busybox made...   8                    [OK]

is-automated¶

この例は名前に busybox を含み、自動構築されたイメージを表示します。

$ docker search --filter is-automated busybox
NAME                 DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
progrium/busybox                                                     50                   [OK]
radial/busyboxplus   Full-chain, Internet enabled, busybox made...   8                    [OK]

is-official¶

この例は名前に busybox を含み、3つ以上のスターを持つ公式ビルド・イメージを表示します。

$ docker search --filter "is-automated=true" --filter "stars=3" busybox
NAME                 DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
progrium/busybox                                                     50                   [OK]
radial/busyboxplus   Full-chain, Internet enabled, busybox made...   8                    [OK]

参考

search
https://docs.docker.com/engine/reference/commandline/search/

© Copyright 2015-2020, Docker Docs Translation Ja-Jp Project. 最終更新: 2020-06-02

Built with Sphinx using a theme provided by Read the Docs.