0

I am confused by the concepts of docker images and containers. According to the internet, a container is a running image, and this image has the necessary files to run a container. At first, we have to build images.

We don't have to build images the second time to run the container onwards if we use volumes (bind-mount). If the build is a process to create images, why don't we have to build images every time?

If the container runs based on images, I think we should build images every time, but people are not doing that. When we use volumes (bind-mount), images are also changed every time we change files?

When should we build images, apart from the very first time?

John Kugelman
  • 349,597
  • 67
  • 533
  • 578

0 Answers0