> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/kontenaimjisukyan/cloud-provider-registries/configuring-registry-scan-scope.md).

# レジストリのスキャン範囲を設定する

ワイルドカードパターンを使用して、接続済みレジストリで Aikido がスキャンするコンテナイメージを制御します。これにより、関連するコンテナに集中でき、複数のプロジェクトにまたがって何百ものイメージを含むレジストリを扱う際の煩雑さを避けられます。

#### スキャン範囲の仕組み

スキャン範囲は 2 つの方法で設定できます:

* **一致するコンテナを含める**: Aikido は、指定したパターンに一致するコンテナのみをスキャンします。その他のコンテナはすべて無視されます。
* **一致するコンテナを除外する**: Aikido は、指定したパターンに一致するものを除いたすべてのコンテナをスキャンします。

{% hint style="info" %}
**ワイルドカードパターンはコンテナ名のみに一致します。** スコープルールの評価時には、タグ、イメージ ID、その他のメタデータは考慮されません。
{% endhint %}

#### スキャン範囲の設定

1. 移動先： [**設定** > **コンテナ**](https://app.aikido.dev/settings/container-image-registry)
2. 設定したいレジストリの三点メニューをクリックし、「**レジストリ設定を編集**'<br>

   <figure><img src="/files/a122c87fb6f54bfaedb07bb44858c21de00fa238" alt="" width="288"><figcaption></figcaption></figure>
3. 次の **レジストリ設定** モーダル内で、次までスクロール **レジストリのスキャン範囲** セクション<br>

   <figure><img src="/files/7dbbb8c5d27ce3ccc9d0d0f34c8a8e2e8f61ae10" alt="" width="375"><figcaption></figcaption></figure>
4. スキャンモードを選択してください:
   * **一致するコンテナを含める** 許可リストを作成するには
   * **一致するコンテナを除外する** ブロックリストを作成するには
5. ワイルドカードパターンを入力してください（例: `backend-*`)
6. をクリックし、 **パターンを追加** 追加のパターンを追加するには
7. をクリックし、 **保存**

保存後、Aikido はスキャン範囲のルールを適用します **次回のスケジュール済みスキャン時に**。条件に一致するコンテナのみが Aikido ワークスペースに追加され、スキャンされます。

#### ワイルドカードパターンの例

ワイルドカードパターンでは `*` 文字を使って複数のコンテナ名に一致させます:

* `frontend-*` - "frontend-" で始まるすべてのコンテナに一致します（例: `frontend-web`, `frontend-api`)
* `*-prod` - "-prod" で終わるすべてのコンテナに一致します
* `production/*` - production プロジェクトまたは namespace 内のすべてのコンテナに一致します
* `*test*` - 名前に "test" を含む任意のコンテナに一致します


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/kontenaimjisukyan/cloud-provider-registries/configuring-registry-scan-scope.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
