Back to Compose

docker compose commit

docs/reference/compose_commit.md

5.1.3974 B
Original Source

docker compose commit

<!---MARKER_GEN_START-->

Create a new image from a service container's changes

Options

NameTypeDefaultDescription
-a, --authorstringAuthor (e.g., "John Hannibal Smith [email protected]")
-c, --changelistApply Dockerfile instruction to the created image
--dry-runboolExecute command in dry run mode
--indexint0index of the container if service has multiple replicas.
-m, --messagestringCommit message
-p, --pausebooltruePause container during commit
<!---MARKER_GEN_END-->