> 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/configuration/link-repository-to-container.md).

# リポジトリをコンテナに手動でリンクする

コンテナイメージを対応するコードリポジトリにリンクすると、関連する脆弱性が一元化されるため、適切なコンテキストでそれらを確認、トリアージ、修正できます。リンクするとすぐに:

* コンテナの問題は、関連するリポジトリ内に直接表示されます。
* 利用可能な修正を使って Dockerfile を自動的に更新する Container Autofix を利用できるようになります。

#### コンテナをリンクする方法

リポジトリとコンテナをリンクする方法は2つあります:

* **手動リンク** – 特定のリポジトリをコンテナに1つずつリンクします。
* **スマート提案** – インテリジェントなリポジトリ提案を使用して、複数のコンテナを自動的にリンクします。 [詳しくはこちら →](https://help.aikido.dev/container-image-scanning/configuration/container-autolink)

## リポジトリをコンテナに手動でリンクする <a href="#how-to-link-a-repository-to-a-container" id="how-to-link-a-repository-to-a-container"></a>

**手順 1**: 次の場所へ移動します [設定 > コンテナ](https://app.aikido.dev/settings/container-image-registry) を Aikido インターフェースの右上隅から。

**ステップ 2:** 🔗 をクリック **リンク** 接続したいコンテナの横にあるボタン。\
検索バーを使って、正しいリポジトリを見つけて選択します。

![Docker イメージ「openscurity/mobsfscan:latest」が、リンクされていないコードリポジトリをリンクするよう促します。](/files/ae74cf1b57fb0821b7c08358e3c95c20741f8aa7)

![クラウドイメージを「Spoon-Knife」コードリポジトリにリンクするダイアログ。](/files/bb2c0d48af1025ca02670445263873e0be973780)

**ステップ 3**: コンテナにリンクされているすべてのリポジトリを表示するには、で に移動します [設定 > コンテナ](https://app.aikido.dev/settings/container-image-registry)。次を使用します `⋮` **三点メニュー** リンクを解除したいリンク済みリポジトリの横にあるものを使います。


---

# 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/configuration/link-repository-to-container.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.
