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

# 旧Container Registry

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

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

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

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

   サービス アカウントを作成したら、Aikido がコンテナにアクセスするために使用できるこのアカウントのキーを作成する必要があります。名前をクリックして概要からサービス アカウントの詳細に移動し、次に `キー` タブです。\
   ​\
   このタブで、次をクリックします： `キーを追加` をクリックして、新しい 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.
