Create a new image from container changes.
Section: Images
Commit container changes to image
bash
bash
docker commit mycontainer myimage:debugExplanation
Handy for debugging, but prefer Dockerfiles for repeatable builds.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Images