mirror of
https://github.com/apple/container.git
synced 2026-09-25 09:05:47 +00:00
@@ -313,7 +313,7 @@ Executes a command inside a running container. It uses the same process flags as
|
||||
**Usage**
|
||||
|
||||
```bash
|
||||
container exec [--env <env> ...] [--env-file <env-file> ...] [--gid <gid>] [--interactive] [--tty] [--user <user>] [--uid <uid>] [--workdir <dir>] [--debug] <container-id> <arguments> ...
|
||||
container exec [--detach] [--env <env> ...] [--env-file <env-file> ...] [--gid <gid>] [--interactive] [--tty] [--user <user>] [--uid <uid>] [--workdir <dir>] [--debug] <container-id> <arguments> ...
|
||||
```
|
||||
|
||||
**Arguments**
|
||||
@@ -321,6 +321,10 @@ container exec [--env <env> ...] [--env-file <env-file> ...] [--gid <gid>] [--in
|
||||
* `<container-id>`: Container ID
|
||||
* `<arguments>`: New process arguments
|
||||
|
||||
**Options**
|
||||
|
||||
* `-d, --detach`: Run the process and detach from it
|
||||
|
||||
**Process Options**
|
||||
|
||||
* `-e, --env <env>`: Set environment variables (format: key=value)
|
||||
|
||||
Reference in New Issue
Block a user