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

結果を JSON ファイルに出力し、Aikido に調査結果を保持しない一時的なイメージスキャンを実行します。

引数:
  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.
