> 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/image-scanning-for-gcp-legacy-container-registry.md).

# GCP レガシー Container Registry

これで、GCP Container Registry を Aikido と統合し、既知の脆弱性がないかコンテナをスキャンできるようになりました。

この機能を有効にするには、以下の簡単な手順に従ってください：

1. サービスアカウントを作成する

   まず、GCP の「IAM & Admin」コンソールでサービスアカウントを作成する必要があります。サービスアカウントには次のロールが割り当てられている必要があります。 `Container Registry Service Agent` ロール。
2. サービスアカウント用のキーを作成する

   サービスアカウントを作成したら、Aikido がコンテナへアクセスできるように、このアカウント用のキーを作成する必要があります。概要画面から名前をクリックしてサービスアカウントの詳細に移動し、次に `KEYS` タブを選択します。\
   ​\
   このタブで、 `ADD KEY` をクリックして、新しい JSON キーを作成します。キーが作成されると、キーの内容を含む JSON ファイルが自動的にダウンロードされます。次の手順でそのキーの内容を提供する必要があります。
3. Aikido でレジストリを接続する

   サービスアカウントを作成し、キーを取得したら、Aikido でレジストリを接続できます。まず、 [Aikido のコンテナ概要ページ](https://app.aikido.dev/containers)に移動し、 `レジストリを接続` をクリックして、次を選択します: `GCP Container Registry` をレジストリ一覧から選択します。\
   ​\
   このページでは、まず Container Registry がホストされている GCP のプロジェクト ID を入力し、その後、前の手順で取得した JSON キーファイルをアップロードできます。Aikido はこのキーを安全な場所に暗号化して保存し、イメージのスキャンに使用します。\
   ​\
   レジストリが接続されると、Container Registry 内のリポジトリを検索し、スキャンしたいものから順にスキャンを開始できます。

![プロジェクト ID を入力し、JSON キーファイルをアップロードして GCP Container Registry を接続します。](/files/443c177e27f99c566ff7c34492611eb815c59854)

Aikido は、GCP の Artifact Registry でホストされているコンテナのスキャンもサポートしています。手順は [こちら](https://help.aikido.dev/en/articles/8019780-container-scanning-for-gcp-artifact-registry).

### &#x20;<a href="#set-up-gcp-container-registry" id="set-up-gcp-container-registry"></a>


---

# 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/image-scanning-for-gcp-legacy-container-registry.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.
