Skip to content
Fresh

docker compose commit

Back

Reference

docker compose commit

Copy as Markdown

Open MarkdownAsk Docs AIClaudeOpen in Claude

| Description | Create a new image from a service container's changes | | Usage | docker 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