docker commit
SafeCommit a container
docker commit <container> <image:tag>
Snapshots a container as an image — good for incident forensics; prefer Dockerfiles for repeatability.
Examples
docker commit web01 debug/web:incident-0611Preserve incident state
Syntax
docker commit [-m msg] <container> <repo:tag>
Before you run it
Creates an image only.
Related commands
- docker buildBuild an image
- docker saveExport images to tar
- docker inspectInspect metadata
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store