What is the primary difference between a Docker image and a Docker container?

  • Containers are lightweight, images are heavy
  • Images are for building, containers are for running
  • Images run applications, containers store data
  • Images store runtime data, containers store source code
Docker images are read-only templates used to create containers. Containers are instances of images that run applications. Images are for building and containers are for running.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *