> 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/autofix-to/scope/ai-autofix-for-containers.md).

# コンテナ向けAutoFix

目標はシンプルです。ノイズを減らしつつ、より多くを、より速く修正すること。AI Autofix は、安全でレビュー可能な Dockerfile の更新案を提案することで、コンテナの脆弱性を一括で修正できるよう支援します。

### 要するに <a href="#in-short" id="in-short"></a>

* **ベースイメージの更新:** コンテナのベースイメージで脆弱性が見つかった場合、Autofix は更新オプション（パッチ、マイナー、メジャー）を提案します。
* **複数のパッチオプション**: 3～5 個の Dockerfile バリアントを取得できます。各バリアントは別のベースイメージに紐づいています。それぞれについて、どの脆弱性が修正されるか、また新たにどの脆弱性が導入されるかを確認できます。
* **Aikido Images:** 利用可能な場合、AutoFix は HIGH および CRITICAL の重大度の問題が修正済みの、CVE がゼロのベースイメージを提案します。 **HIGH** および **CRITICAL** 重大度の問題が修正されています。 [詳細を見る](/docs/docs-ja/autofix-to/scope/autofix-for-containers-using-aikido-images.md) Aikido Images の利用について。
* **判断はお任せ**: メジャーアップデートは多くの問題を修正することが多いですが、手動での変更が必要になる場合があります。あなたのスタックに最も適したものを選んでください。

### コンテナ向け AI Autofix の主な機能 <a href="#key-features-of-ai-autofix-for-containers" id="key-features-of-ai-autofix-for-containers"></a>

* **修正前に変更をプレビュー:** AI が生成した修正内容を適用する前に、詳細なプレビューを確認できます。
* **プルリクエスト（PR）を作成：** ソースコード管理（SCM）システムで直接プルリクエストを生成します

<figure><img src="/files/37acf96d7cc51600f9b6d0a903266ae385627228" alt=""><figcaption></figcaption></figure>

***

知っておくとよいこと

* **処理時間:** Autofix が提案を生成するまでに最大 5 分かかる場合があります。これは、考えられるすべてのベースイメージ更新について脆弱性をスキャンするためです。
* **公開および非公開のベースイメージ**: Container Autofix は公開ベースイメージと非公開ベースイメージの両方を更新できます。非公開ベースイメージは Aikido によるスキャンが必要です。非公開ベースイメージでサポートされるレジストリは、Docker Hub、GitHub Container Registry、AWS Elastic Container Registry、Azure Container Registry、GCP Container Registry です。
* **Dockerfile のリンク**: リポジトリから Dockerfile を自動検出します。曖昧な場合は、UI で正しいパスを設定するよう求められます。
* **プライバシーファースト**: コードスニペットは暗号化されたチャネルを通じて安全に AWS Bedrock に送信されます。Aikido も **〜も** [AWS Bedrock](https://aws.amazon.com/bedrock/security-compliance/) お客様のコードを AI モデルの学習やファインチューニングに使用しません。

### AI Autofix 機能の使い方 <a href="#how-to-use-the-ai-autofix-functionality" id="how-to-use-the-ai-autofix-functionality"></a>

* **ステップ 1**. **次へ移動** [**Container Autofix ページ**](https://app.aikido.dev/issues/fix/container)[.](https://app.aikido.dev/issues/fix/sast)

  修正を **表示**できます。コンテナがリポジトリにリンクされていない場合や Dockerfile のパスが不明確な場合は、手動で設定するよう促されます。

  <figure><img src="/files/a78e6d09f0b4f144dee9a5ca3a3a6201cff2a3f7" alt=""><figcaption></figcaption></figure>
* **手順 2。** **パッチオプションを確認して選択**

  各オプションには、何が修正されるか、また新しい問題が導入されるかどうかが表示されます。あなたの環境に合うものを選んでください。

<figure><img src="/files/8f5283e0b51f8b67740af8bb7490d4286c6fe190" alt=""><figcaption></figcaption></figure>

* **ステップ 3. PR を作成**

  Autofix は、更新された Dockerfile を使って、SCM に直接プルリクエストを生成します。

***


---

# 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/autofix-to/scope/ai-autofix-for-containers.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.
