Docker Community Forums

Share and learn in the Docker community.

Should a container be stopped before committing an image?


(Ben Zhou) #1

Should I stop a container before committing to an image or it doesn’t matter with the container running?


(Jacknblak) #2

It does not matter, you can commit a container while its running,
however its advised to stop the container after completing your tasks and then commit.