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

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

コンテナイメージを対応するコードリポジトリに紐づけることで、関連する脆弱性を一元管理できるため、適切な文脈で確認、トリアージ、修正できます。リンクすると:

* コンテナの問題は、関連するリポジトリ内に直接表示されます。
* Container Autofix が有効になり、利用可能な修正を Dockerfile に自動で反映します。

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

コンテナをリポジトリにリンクする方法は 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.
