dockerfile, docker image and docker container analogy

So at the end of the day, we can sum things up as:

  • A Dockerfile is a recipe for creating Docker images

  • A Docker image gets built by running a Docker command (which uses that Dockerfile)

  • A Docker container is a running instance of a Docker image