1

I know to use the "docker build" to build an image from Dockerfile and it would package a tar to Docker daemon.

How does it work on Docker daemon when building the image? Is it create a temporary container?

Tone
  • 11
  • 2
  • Hi Tone! Please consider following this site https://area51.stackexchange.com/proposals/124022/docker-container if you have question about Docker containers – bjornsing Mar 27 '20 at 14:25

1 Answers1

0

A Docker image is roughly equivalent to a "snapshot" in other virtual machine environments. It is a record of a Docker virtual machine, or Docker container, at a point in time. Think of a Docker image as a digital picture. A Docker container can be seen as a printout of that picture. Docker images have the special characteristic of being immutable. They can't be modified, but they can be duplicated and shared or deleted. The immutability is useful when testing new software or configurations because no matter what happens, the image will still be there, as usable as ever.

nischay goyal
  • 3,206
  • 12
  • 23