Docker includes three basic concepts:
Image (Image)
Container (Container)
Repository (Repository)
These three parts make up the entire life cycle of Docker. As shown in the figure below, a container is instantiated from an image, which is very similar to the object-oriented concept we learned. We can think of an image as a class and a container as a The object after the class is instantiated, so it is very easy to understand the relationship between the image and the container.