The commit command is useful to interactively create an image.
See official doc: https://docs.docker.com/engine/reference/commandline/commit/
Some thing like:
$ docker commit [<opts>] <container> [<repository> [<:tag>]]
Create a new image from a container’s changes
-a, --author Author (e.g., “John Hannibal Smith hannibal@a-team.com”)
-c, --change Apply Dockerfile instruction to the created image
-m, --message Commit message
-p, --pause Pause container during commit