What is the difference between Docker image and Docker container?

Docker container is simply an instance of a Docker image. A Docker image is an immutable file, which is a snapshot of a container. We create an image with the build command. When we use the run command, an Image will produce a container.
In a programming language, an Imageisa Class and a Container are instances of the class.