What Docker that? VM (Virtual Machine) and Docker What is the difference

What is the Docker

Docker is a software box, or a call between the container, the container is a bell isolated container technology. System-level container, for example a CentOS, Ubuntu or a container, as long as the time to build, you can publish to anywhere (you are familiar with a variety of operating systems), and get a virtual running Linux (CentOS or Ubuntu) of surroundings. Of course Docker also provide service level (PHP, Go, C ++, etc.) containers, and even custom application (a blog, an e-commerce website, etc.) containers.

Note : Container technology is not just simply refers to the Docker, Docker more popular, almost become synonymous with container technology.

Learning conditions have

Provided that the reader should be familiar with the basic concepts of Windows and the Windows operating system already on the various programs. In addition, if the reader an understanding of Linux that will help.

Start learning Docker

Docker difference with virtual machines

virtual machine

  • Resource consumption and more virtual machines exclusive part of the memory and hard disk space. When it is running, other programs will not be able to use those resources. Even inside the virtual machine applications, the use of real memory is only 1MB, virtual machines still need several hundred MB of memory to run.
  • Redundant multi-step, the virtual machine is a complete operating system, some system-level steps, often can not be skipped, such as user login.
  • Start slow, start the operating system, how long, how long you need to start the virtual machine. May have to wait a few minutes, the application can really run.

    Docker

  • Start fast, inside the container application, directly underlying system is a process, rather than inside the virtual machine process. So, to start a process container equivalent to start the machine, instead of starting an operating system, speed is much faster.
  • Occupy less resources, container only takes up resources needed, do not take those resources are not used; virtual machine because it is complete operating system, it is inevitable to take up all the resources. In addition, multiple containers can share resources, virtual machines are exclusive resources.
  • Small size, as long as the container containing the component can be used, while the virtual machine is package an entire operating system, so the container file is much smaller than the virtual machine files.

Guess you like

Origin blog.51cto.com/13578973/2422271