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

# Automatically Link Repository to Container via Smart Suggestions

This functionality helps you automatically connect your containers to the correct code repositories using intelligent matching.

#### Why link containers?

* View container vulnerabilities directly in the context of the right repository.
* Unlock Container Autofix, which can automatically fix issues in Dockerfiles.

### How Aikido's Smart Suggestions Work

* Aikido uses smart matching based on repository names and common path patterns.
* Aikido displays suggestions for you to **review and confirm** — you stay in control of what gets linked.

### Steps to Automatically Link Repositories

Container AutoLink helps you automatically connect your containers to the correct code repositories using intelligent matching.

#### Why link containers?

* View container vulnerabilities directly in the context of the right repository.
* Unlock Container Autofix, which can automatically fix issues in Dockerfiles.

***

### How AutoLink Works

* Uses smart matching based on repository names and common path patterns.
* Displays suggestions for you to **review and confirm** — you stay in control of what gets linked.

***

### How to Use Container AutoLink

{% stepper %}
{% step %}
**Open**[ **Container Settings**](https://app.aikido.dev/settings/container-image-registry)

If Smart Suggestions are available, a banner will appear at the top of the page.

<figure><img src="/files/Nmx4XJM9F7ODpWNhB6Ir" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Review and Confirm Suggestions**

You'll be taken to an overview page showing suggested repo links for your containers.

* Review all suggested matches.
* Select the ones you want to confirm.
* Optionally, adjust or manually link repositories if needed.

<figure><img src="/files/YdeJjVX1jOch3NMqeG2w" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

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