| 1 |
# docker compose commit |
| 2 |
|
| 3 |
<!---MARKER_GEN_START--> |
| 4 |
Create a new image from a service container's changes |
| 5 |
|
| 6 |
### Options |
| 7 |
|
| 8 |
| Name | Type | Default | Description | |
| 9 |
|:------------------|:---------|:--------|:-----------------------------------------------------------| |
| 10 |
| `-a`, `--author` | `string` | | Author (e.g., "John Hannibal Smith <[email protected]>") | |
| 11 |
| `-c`, `--change` | `list` | | Apply Dockerfile instruction to the created image | |
| 12 |
| `--dry-run` | `bool` | | Execute command in dry run mode | |
| 13 |
| `--index` | `int` | `0` | index of the container if service has multiple replicas. | |
| 14 |
| `-m`, `--message` | `string` | | Commit message | |
| 15 |
| `-p`, `--pause` | `bool` | `true` | Pause container during commit | |
| 16 |
|
| 17 |
|
| 18 |
<!---MARKER_GEN_END--> |
| 19 |
|