コンテンツにスキップ
これは最新の機能を備えた最新リリースですが、長期サポートは提供されません。サポートを継続するには、新しいリリースごとにアップグレードするか、四半期ごとの安定版リリースをご利用ください。

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

arctl wrap-agent-image

Page as Markdown

エージェントイメージを agent-proxy レイヤーでラップします

ユーザーのエージェントコンテナイメージを agent-proxy レイヤーでラップし、エージェントが agent-proxy 経由で起動するようエントリポイントを書き換えて、任意のレジストリにプッシュできる新しいイメージを生成します。

デフォルトでは Docker にロード可能な tar を書き込みます。その後、docker load と docker push を実行できます。-push を指定すると、-tag に直接アップロードします。

使用方法

arctl wrap-agent-image [flags]

例:

# Production CLIs download and cache their version-matched layer automatically
arctl wrap-agent-image --image repo/agent:tag \
  --tag <acct>.dkr.ecr.<region>.amazonaws.com/agent:wrapped

# Source builds use an explicit matching local layer
arctl wrap-agent-image --image repo/agent:tag --proxy-layer dist/agent-proxy-layer-arm64.tar \
  --tag <acct>.dkr.ecr.<region>.amazonaws.com/agent:wrapped --push

コマンド固有のフラグ

--image string: user agent image reference to wrap (required).
-o, --output string: docker-loadable tar to write; defaults to <tmpdir>/<image-name>-wrapped.tar (ignored with --push).
--platform string: base image platform to wrap (linux/arm64 for AgentCore, linux/amd64 for others) (default "linux/arm64").
--proxy-layer string: local path or HTTP(S) URL for the proxy layer tar; defaults to the version-matched layer when available.
--proxy-layer-bucket string: GCS bucket containing version-matched proxy layers (default "agentregistry-enterprise").
--push: push directly to --tag instead of writing a tar.
-t, --tag string: reference to assign the wrapped image, e.g. <acct>.dkr.ecr.<region>.amazonaws.com/agent:wrapped (required).

グローバルフラグ

-h, --help: Display help information for the command.
-n, --namespace string: Registry namespace to operate in (defaults to value of ARCTL_NAMESPACE env var, else "default").
--registry-token string: Registry bearer token (defaults to value of ARCTL_API_TOKEN env var).
--registry-url string: Registry URL (overrides ARCTL_API_BASE_URL env var; defaults to http://localhost:12121).