Home / Reference / CLI reference / docker / docker compose / docker compose commitdocker compose commit Copy as Markdown Open Markdown Ask Docs AI Claude Open in ClaudeDescriptionCreate a new image from a service container's changesUsagedocker compose commit [OPTIONS] SERVICE [REPOSITORY[:TAG]]DescriptionCreate a new image from a service container's changesOptionsOptionDefaultDescription-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