Create a new image from a container’s changes
docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
Name, shorthand | Default | Description |
---|---|---|
--author, -a |
Author (e.g., “John Hannibal Smith hannibal@a-team.com”) | |
--change, -c |
Apply Dockerfile instruction to the created image | |
--message, -m |
Commit message | |
--pause, -p |
true |
Pause container during commit |
Command | Description |
---|---|
docker | The base command for the Docker CLI. |
Alias for docker container commit
.