Summarize

  • Docker Image: Used to snapshot the application at a time, can't run or start, they represent an application and its virtual environment at a particular time (source code, config, libraries, dependency...) , read-only, immutable. You can't modify it, if you want you need to use the new image

  • Docker Container: Used to run images, provides an isolated environment for running applications.

=> Images can exist without containers, while running containers requires an existing image. So, the container depends on the image and uses it to create the run-time environment and run the application on it.

  • Docker composes: Use to run multi-container base on images already build

Last updated