What is the difference between the following two commands:
docker container commit
docker commit
I read the documentation for both the commands but couldn't found any difference between the two commands(Also both the commands contain the same options).
https://docs.docker.com/engine/reference/commandline/commit/ https://docs.docker.com/engine/reference/commandline/container_commit/
The help page of both the commands show the same output on Docker 19.03
Usage: docker container commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
Create a new image from a container's changes
Options:
-a, --author string Author (e.g., "John Hannibal Smith <[email protected]>")
-c, --change list Apply Dockerfile instruction to the created image
-m, --message string Commit message
-p, --pause Pause container during commit (default true)