File: compose_commit.md

package info (click to toggle)
docker-compose 2.32.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,300 kB
  • sloc: makefile: 113; sh: 2
file content (19 lines) | stat: -rw-r--r-- 976 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# docker compose commit

<!---MARKER_GEN_START-->
Create a new image from a service container's changes

### Options

| Name              | Type     | Default | Description                                                |
|:------------------|:---------|:--------|:-----------------------------------------------------------|
| `-a`, `--author`  | `string` |         | Author (e.g., "John Hannibal Smith <hannibal@a-team.com>") |
| `-c`, `--change`  | `list`   |         | Apply Dockerfile instruction to the created image          |
| `--dry-run`       | `bool`   |         | Execute command in dry run mode                            |
| `--index`         | `int`    | `0`     | index of the container if service has multiple replicas.   |
| `-m`, `--message` | `string` |         | Commit message                                             |
| `-p`, `--pause`   | `bool`   | `true`  | Pause container during commit                              |


<!---MARKER_GEN_END-->