Should a container be stopped before committing an image?

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

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.

1 Like