- How does docker work
Docker is a client server system. The daemon of docker runs on the host and is accessed from the client through the socker!
Dockerserver will execute this command after receiving the docker client instruction!
- Why is docker faster than VM
1. Docker has fewer abstraction layers than virtual machines.
2. Docker uses the kernel of the host, and VM requires guest OS.
Therefore, when creating a new container, docker does not need to reload an operating system kernel like a virtual machine to avoid booting. The virtual machine loads the guest OS at the minute level, while docker uses the operating system of the host, omitting this complex process at the second level!
This work adoptsCC agreement, reprint must indicate the author and the link to this article