CmdID / docker / docker compose
docker compose commit
Create a new image from a service container's changes Docker Compose reference
6 options Its page in the Docker Compose reference
Options
--author, -aAuthor (e.g., "John Hannibal Smith ")--change, -cApply Dockerfile instruction to the created image--dry-runExecute command in dry run mode--indexindex of the container if service has multiple replicas.--message, -mCommit message--pause, -pPause container during commit