> 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/kontenaimjisukyan/local-image-scanning/ephemeral-image-scanning.md).

# 一時的なイメージスキャン

ファイルに結果を書き込む一度限りの単独イメージスキャンを実行するには、次のようなコマンドを実行します:

```
./aikido-local-scan ephemeral-image-scan your-image-name --apikey AIK_CI_xxx
```

これは検出結果を次の `aikido-image-scan-results.json` ファイルに書き込みます。\
\
すべてのCLIオプション:

```
使用法: aikido-local-scanner ephemeral-image-scan [options] <image>

Aikidoに検出結果を保存せず、結果をJSONファイルに出力する一時的なイメージスキャンを実行します。

引数:
  image                     スキャンするイメージ。

オプション:
  --apikey <apikey>         スキャン結果をAikidoに送信するためのAPIキー。(env: AIKIDO_API_KEY)
  --platform <platform>     プラットフォームを設定します（たとえば、amd64システムでarm64イメージを取得するため）。
  --image-name <name>       スキャン対象イメージの名前を指定します。これは、<image>引数からイメージ名を推測するというデフォルト動作を上書きします。
  --result-output <output>  問題を書き込むJSONファイル。(既定値: "./aikido-image-scan-results.json")
  --fail-on <severity>      スキャンで指定した重大度以上の検出結果が出た場合、0以外の終了ステータスコードで終了します。(選択肢: "low", "medium", "high", "critical")
  --include-unfixed         まだ修正が利用できないCVEも含めます（既定では修正可能な検出結果のみが報告されます）。
  --debug                   コマンド出力に追加のデバッグ情報を含めます。
  --scan-timeout <timeout>  各スキャンのタイムアウト（ミリ秒単位）。(既定値: 900000ms)
  --enable-proxy            HTTPS_PROXY環境変数を使用してリクエストをプロキシします
  --ca-bundle <path>        --enable-proxy使用時に信頼するカスタムルートCAを含むPEMファイルへのパス。(env: AIKIDO_CA_BUNDLE)
  -h, --help                コマンドのヘルプを表示します
```


---

# 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/kontenaimjisukyan/local-image-scanning/ephemeral-image-scanning.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.
