> 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/automatically-link-repository-to-container-via-smart-suggestions)

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

**ステップ 1**: 次へ移動 [Settings > Containers](https://app.aikido.dev/settings/container-image-registry) Aikidoインターフェースの右上隅から。

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

![Dockerイメージ「openscurity/mobsfscan:latest」は、リンクされていないコードリポジトリへのリンクを促します。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-520e5795256974fbed54be26a54c368ffdc2bb90%2Flink-repository-to-container_74ab9881-0f6d-4c05-a475-281c18baaaa3.png?alt=media)

![クラウドイメージを「Spoon-Knife」コードリポジトリにリンクするダイアログ。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-fb2c0e505b35b3c7373953e1a79676c89d63a89b%2Flink-repository-to-container_49a82ebf-5f16-4aa5-8044-fc7036e1c3e0.png?alt=media)

**ステップ 3**：コンテナにリンクされているすべてのリポジトリを表示するには、in に移動します [Settings > Containers](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.
