Docker's Container (container) Introduction

What is Container

  • First of all we have to have a Container Image, Container through image that is created;
  • Container original Image is above the newly added layer, referred to as Layer Container, which is readable and writable layer (Image is read-only);
  • In object-oriented programming languages, the concept of class with the object. Class is abstract, the object class is a concrete implementation. Image Container can be compared with the object with the object-oriented class, an abstract class is equivalent to Image, Container equivalent Specific examples of the object;
  • Image of Container duties with distinction: Image APP is responsible for the storage and distribution, Container responsible for running APP

Suppose we install MySQL on Docker, created a mysql container:

The figure we can visually see the relationship between the Image and the Container:

Images corresponding to a folder that contains many Container (container), Container specific object.

 

More exciting, please pay attention to my "Today's headlines No": Java cloud notes
anywhere, so you have the latest and most convenient Pocket Cloud Services

 

Published 144 original articles · won praise 168 · views 70000 +

Guess you like

Origin blog.csdn.net/weixin_44259720/article/details/104530250