Share feedback
Answers are generated based on the documentation.

docker compose commit

DescriptionCreate a new image from a service container's changes
Usagedocker compose commit [OPTIONS] SERVICE [REPOSITORY[:TAG]]

Description

Create a new image from a service container's changes

Options

OptionDefaultDescription
-a, --authorAuthor (e.g., "John Hannibal Smith hannibal@a-team.com")
-c, --changeApply Dockerfile instruction to the created image
--indexindex of the container if service has multiple replicas.
-m, --messageCommit message
-p, --pausetruePause container during commit