Docker first understand the role and benefits of Docker

Docker first understand the role and benefits of Docker

(1) What is Docker

(2) Docker advantages and disadvantages

 

Docker started to follow and learn last year, because AspnetCore was used in the project, and I always felt that DocKer would be used. Come down and make a record to use it one day or pick it up again .

When I first started learning, to tell the truth, I really wasted a lot of time. I looked at a lot of information and found a lot of information, and some of them were not easy to understand.

      Today, I will tell you about the deviations in my understanding of Docker . Please point out. Thank you in advance.

      Docker is an open source project aimed at packaging applications as portable, self-sufficient containers (quote)

DocKer builds once and runs anywhere without any changes . DocKer is similar to a container. This container is like our commonly used virtual machine. When we have installed VS , SQL , browser in our virtual machine ...   Then we will back up the virtual machine image and wait until the next time we need to build a new environment. , you can save a lot of things, just run the backup virtual machine directly, and you will have everything you need, saving a lot of things.

In the case of using DocKer , we can directly publish the project on the DocKer container for testing. When the project needs to be officially launched, we can directly deploy the finished DocKer image. If the test is good, there is no need to worry about the project. What problems will occur when the official version is released? (For example, many projects of our Confing configuration information are the test environment address, the official environment address, but only one after using DocKer) DocKer can be used in cloud, Windows , To deploy on Linux and other environments, just talking about this saves me a lot of costs and the risk of project deployment and launch. I don't have to stay behind a bunch of talents every time the project goes online and wait for the project to report an error .

 

      It is estimated that some people will say that the virtual machines you mentioned can also do it. Here I will talk about the advantages of DocKer compared with virtual machines .

      ( 1 ) The startup speed of DocKer is something that a virtual machine must not dare to tease, (declare here, on the same computer)

      ( 2 ) The utilization of resources is also much higher than that of virtual machines. I believe that 100 DocKers can run on the same machine . We must not drive away so many virtual machines, which can effectively save resources.

       To borrow a picture from a chapter on the Internet:

       

 

Note the text in the image:

In the figure, we can see that DocKer does not require a complete system compared to virtual machines, but there is no virtual machine for isolation .

 

   If there is any misunderstanding, I hope you can point it out and correct it in time.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325039536&siteId=291194637