Run process and docker principle

Time:2021-10-20

Operation process

Run process and docker principle

Run process and docker principle

Underlying principle

  • 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!

Run process and docker principle

  • 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.

Run process and docker principle

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!

Run process and docker principle

This work adoptsCC agreement, reprint must indicate the author and the link to this article