docker pass run
| 内容説明 | Run a command with `se://` environment references resolved. |
|---|---|
| 利用方法 | docker pass run -- CMD [ARGS...] [flags] |
試験的
このコマンドは試験的なものです。
試験的機能はテスト向けに意図されたものであり、その機能に関してのフィードバックを得る目的があります。 この機能はリリース時に予告なく変更される場合があり、また今後のリリースに向けて削除されることがあります。
内容説明
Scans the current environment (plus any --env-file inputs) for variables
whose value is exactly se://<ID|pattern>. Each reference is resolved through the
secrets-engine daemon and the resolved value is passed to the child process.
The child inherits stdin, stdout, and stderr.
Requires the secrets-engine daemon (Docker Desktop) to be running.
If any reference cannot be resolved, the command fails before the child is started and exits non-zero.
オプション
| オプション | デフォルト | 内容説明 |
|---|---|---|
--env-file | Read environment variables from a dotenv-formatted file. Repeatable; later files override earlier files and the process environment. |
利用例
Run a command with one secret in its environment:
$ SE_TOKEN=se://gh-token docker pass run -- gh repo list
Multiple references:
$ DB_PASSWORD=se://myapp/postgres/password API_KEY=se://myapp/anthropic/api-key docker pass run -- ./my-binary
Resolve references from a dotenv file:
$ docker pass run --env-file .env -- ./my-binary
Multiple files (later overrides earlier; files override the process environment):
$ docker pass run --env-file .env --env-file .env.local -- ./my-binary