> 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プロジェクトまたは名前空間内のすべてのコンテナに一致します
* `*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.
