# 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: 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:

```
GET https://help.aikido.dev/container-image-scanning/configuration/link-repository-to-container.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
