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

# Manually Link Repository to Container

Linking your container images to their corresponding code repositories centralizes related vulnerabilities, so you can view, triage, and fix them in the right context. Once linked:

* Container issues will appear directly within the relevant repo.
* You'll unlock Container Autofix, which updates Dockerfiles automatically with available fixes.

#### Ways to Link Containers

You can link containers to repositories in two ways:

* **Manual Linking** – Link specific repos to containers one by one.
* **Smart Suggestions** – Automatically link multiple containers using intelligent repo suggestions. [Learn more here →](https://help.aikido.dev/container-image-scanning/configuration/container-autolink)

## Manually link a repository to a container <a href="#how-to-link-a-repository-to-a-container" id="how-to-link-a-repository-to-a-container"></a>

**Step 1**: Navigate to [Settings > Containers](https://app.aikido.dev/settings/container-image-registry) via the top right corner of the Aikido interface.

**Step 2:** Click the 🔗 **Link** button next to the container you want to connect.\
Use the search bar to find and select the correct repository.

![Docker image "openscurity/mobsfscan:latest" prompts to link an unlinked code repository.](/files/03ftfFkgTd4L2wRCtU9F)

![Dialog for linking a cloud image to the "Spoon-Knife" code repository.](/files/GPkCEg5pn280KsVtN0ct)

**Step 3**: To see all repositories linked to a container, go to in [Settings > Containers](https://app.aikido.dev/settings/container-image-registry). Use the `⋮` **three-dot menu** next to any linked repo to unlink it.


---

# 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/container-image-scanning/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.
