docker commit

Estimated reading time: 1 minute

Description

Create a new image from a container’s changes

Usage

docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]

Options

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

Parent command

Command Description
docker The base command for the Docker CLI.
chat icon Feedback? Suggestions? Can't find something in the docs?
Edit this page Request docs changes Get support
Rate this page: