mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
introduce run --cap-add to run maintenance commands using service image
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
ff3984e609
commit
c61b8aa5ac
5 changed files with 99 additions and 59 deletions
|
|
@ -8,6 +8,8 @@ Run a one-off command on a service.
|
|||
| Name | Type | Default | Description |
|
||||
|:----------------------|:--------------|:--------|:----------------------------------------------------------------------------------|
|
||||
| `--build` | | | Build image before starting container. |
|
||||
| `--cap-add` | `list` | | Add Linux capabilities |
|
||||
| `--cap-drop` | `list` | | Drop Linux capabilities |
|
||||
| `-d`, `--detach` | | | Run container in background and print container ID |
|
||||
| `--dry-run` | | | Execute command in dry run mode |
|
||||
| `--entrypoint` | `string` | | Override the entrypoint of the image |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue