Scroll to navigation

DOCKER-COMPOSE-COMMIT(1) DOCKER-COMPOSE-COMMIT(1)

NAME

docker-compose-commit - Create a new image from a service container's changes

SYNOPSIS

docker compose commit [OPTIONS] SERVICE [REPOSITORY[:TAG]]

DESCRIPTION

Create a new image from a service container's changes

OPTIONS

-a, --author="" Author (e.g., "John Hannibal Smith hannibal@a-team.com ⟨mailto:hannibal@a-team.com⟩")

-c, --change= Apply Dockerfile instruction to the created image

-h, --help[=false] help for commit

--index=0 index of the container if service has multiple replicas.

-m, --message="" Commit message

-p, --pause[=true] Pause container during commit

OPTIONS INHERITED FROM PARENT COMMANDS

--dry-run[=false] Execute command in dry run mode

SEE ALSO

docker-compose(1)

Oct 2025