The difference between the virtual machine container docker

1. docker with a virtual machine

Docker is a developed applications can be automatically deployed to the container open source engine

VM (Virtual Machine) refers to a complete hardware system functions, run a full computer system through software simulation in a completely isolated environment. In the computer entity to complete the work can be achieved in a virtual machine. When you create a virtual machine on your computer, and memory capacity of the hard disk needs to be physical machine as a virtual machine's hard disk and memory capacity. Each virtual machine has independent CMOS, hard drive and operating system, it can be used like a physical machine as virtual machines operate

(1) A virtual machine is on a single physical machine, virtualization technology, a plurality of virtual operating systems out between each operating system are isolated.
docker is open source application container engine, still need to install the operating system on the computer, and then install the Docker container manager.

(2) the virtual machine is virtualized at the hardware level, which docker is the operating system level virtualization

(3) the virtual machine operating system is set up by analog hardware, and is multiplexed docker operating system

(4) provides isolation between the virtual machine operating system, docker just isolation between processes, so the higher the virtual machine isolation levels, stronger security

(5) docker run faster

(6) docker files much smaller, a large virtual confidential

Here Insert Picture DescriptionDocker daemon can communicate directly with the host operating system, allocating resources for each Docker containers; it can be isolated from the container with the host operating system, and the individual containers separated from each other. It takes a few minutes to start the virtual machine, while Docker containers can be started within a few milliseconds. In the absence of bloated from the operating system, Docker can save a lot of disk space, and other system resources.

Here Insert Picture Description

Published 250 original articles · won praise 2 · views 10000 +

Guess you like

Origin blog.csdn.net/yrx420909/article/details/105358294