Docker Commit

Difficulty: Intermediate

Question

What is 'docker commit' and is it recommended?

Answer

It creates a new image from a container's current state. It is generally **not recommended** because it's not reproducible; the best practice is to use a Dockerfile.

Concepts covered

Commit, Image Creation