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