The will of a man supported by indomitable faith is more powerful than material forces which seem invincible. — Albert Einstein

Illustrations from the Internet

What is Docker?

Docker uses Go language launched by Google for development and implementation, and encapsulates and insulates processes based on Cgroup, Namespace of Linux kernel, Union FS of AUFS class and other technologies, which is a virtualization technology at the level of operating system. Because an isolated process is independent of the host and other isolated processes, it is also called a container. Docker Baidu Encyclopedia

What can Docker do?

As a test, we often face questions:

  1. The test environment is not consistent with the development environment, and after the work order is submitted, the developers often say to us: “MY side is normal!”
  2. The setup of the test environment may fail due to different JDK versions and so on

So Docker can help us solve this series of problems

The difference between Docker and virtual machine

The biggest difference between Docker and virtual machine is: different virtualization solution why to say so, let’s take a look at this diagram to know!

Why study Docker

If Docker doesn’t have that much of an advantage over virtual machines, why would we spend time relearning a tool?

  1. Docker starts faster than virtual machines
  2. The hard disk occupies little space
  3. The performance is close to native because the host kernel is directly used
  4. A single machine supports thousands of containers, while a virtual machine typically supports dozens or so.

The disadvantage of Docker

The downside of Docker is how does Docker make money? One disadvantage of Docker is that it selects kernel. Docker does not virtual kernel, but directly uses the kernel of the host, so this is both its advantages and disadvantages.

Can’t use Docker for compatibility test: Someone said: I installed multiple versions of centos on Docker, and then put my APP on different systems, can I complete the compatibility test? Ideal prototype in mind:

The end of the

If there are any mistakes in this blog, please comment and comment. Thank you very much!