Home > Article > Operation and Maintenance > What is docker virtualization
Docker virtualization refers to a resource management technology that abstracts and converts the physical resources of the computer and presents them. It is mainly used to solve the problem of high-performance physical hardware and old hardware with low production capacity. Reorganization and reuse; and Docker is a virtual environment container that can package executable files, configuration files and all other files you need into this container, and publish and apply it to any platform.
The operating environment of this tutorial: linux7.3 system, docker version 19.03, Dell G3 computer.
In computers, virtualization technology is a resource management technology that abstracts the physical resources of the computer, such as servers, networks, memory and storage, etc. , presented after conversion. Breaking the inseparable barriers between entities, allowing users to apply these resources in a better way than the original configuration
In actual production environments, virtualization technology is mainly used to solve the problem of high-performance physical hardware generation Reorganization and reuse of outdated and old hardware with low production capacity. Transparent the underlying physical hardware to maximize the use of physical hardware.
Of course, there are many virtualization technologies, such as software virtualization, hardware virtualization, memory virtualization, network virtualization, etc.
Virtualization technology is to virtualize physical resources into a certain technology. There are two main types of resource pools: one-virtual-many and multiple-virtual-one. For example, if a personal computer installs Vmware software, other Win systems, MacOS, Linux systems, etc. can be installed on this software, allowing one computer/laptop to host multiple systems. Advantages: Currently, the dual-system solution for Apple laptop users is mainly based on virtual machines. Ordinary Windows users may not have much demand, but technicians are basically a must-have software.
Docker is a virtual environment container that can package your executable files, configuration files and all other files you need into this container, and publish and apply it to any platform. For example, you develop a website backend locally using Python. After the development and testing is completed, you can package Python3 and its dependency packages, Flask and its various plug-ins, Mysql, Nginx, etc. into a container, and then deploy it to any server you want. The environment to deploy to.
Docker extension:
Docker is an open source application container engine that allows developers to package their applications and dependencies into a portable container. Then publish to a machine with any Linux distribution installed. Docker implements VM-like functions based on LXC, which can provide users with more computing resources on more limited hardware resources. Unlike other virtualization methods such as VM, LXC does not belong to any category of full virtualization, partial virtualization or paravirtualization, but is an operating system-level virtualization.
Docker is a container that runs directly on the host operating system. It uses the sandbox mechanism to completely virtualize a complete operation. There will be no interface between containers, allowing the connection between the container and the host. The isolation between containers is more complete. Each container will have its own permission management, independent network and storage stack, and its own resource management capabilities, so that multiple containers can coexist friendly on the same host.
Docker uses Linux kernel features, such as Control Group, Namespace, etc., and directly calls the system call interface of the operating system. This reduces the system overhead of each container and achieves features such as reduced container complexity, fast startup, and small resource usage.
Recommended learning: "docker video tutorial"
The above is the detailed content of What is docker virtualization. For more information, please follow other related articles on the PHP Chinese website!