# docker compose commit Create a new image from a service container's changes ### Options | Name | Type | Default | Description | |:------------------|:---------|:--------|:-----------------------------------------------------------| | `-a`, `--author` | `string` | | Author (e.g., "John Hannibal Smith ") | | `-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 |