> 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.
