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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store