Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A brief introduction to docker

2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "A brief introduction to docker". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "A brief introduction to docker".

Docker was born

Docker is based on the go language, was born in 2013, currently belongs to the linux Foundation and is open source based on the apache 2.0 protocol.

Linux Container Technology and docker

Before dokcer version 0.9, the docker code was implemented entirely based on linux container LXC technology, and then docker developed the libcontainer project to replace the LXC implementation, which aims to rely on any dependency to directly access container-related system calls in the kernel. Container LXC technology: LXC is short for Linux Container. Lightweight virtualization can be provided to isolate processes and resources without the need for instruction interpretation mechanisms and other complexities of full virtualization. Equivalent to the NameSpace in C++. The container effectively divides resources managed by a single operating system into isolated groups to better balance conflicting resource usage requirements between isolated groups.

The advantages of docker in Operation and Development

Rapid delivery and deployment use images to build a standard development environment. After the development is completed, testing and operation and maintenance personnel directly use exactly the same environment to deploy the code. As long as the code for development and test is developed, it can be seamlessly executed in the production environment. Docker quickly creates and deletes containers, realizes fast iteration, saves a lot of time in development, testing and deployment, and the process is visible and easy to process.

More efficient resource utilization to run docker does not require additional virtualization management program (VMM,hypervisor) support, docker is kernel-level virtualization, the need for additional resources at the bottom.

Easier migration and expansion of docker can now run on almost any platform, including physical machines, virtual machines, public clouds, private clouds, personal computers, servers, etc., while supporting mainstream operating system distributions. Multi-platform compatibility allows users to easily migrate applications

Simpler update management uses dockerfile, which only needs to modify the configuration, which can replace a large number of previous update work, and all changes are released and updated incrementally, thus achieving automated and efficient container management.

Docker and Virtualization

A fully virtualized virtual machine simulates the complete underlying hardware environment and the execution of privileged instructions without modification on the guest operating system, such as IBM's p and z series virtualization, vmware workstation,VirtualBox,qemu, etc.

Hardware-assisted virtualization uses the support of hardware CPU, such as intel-VT and AMD-V on x86 to process sensitive instructions to achieve full virtualization. The guest operating system does not need to be modified, such as vmware worksation,xen,kvm

Partial virtualization only aims at the virtualization of some hardware resources, and the guest operating system needs to be modified.

The hardware interface of the hypervirtualization part is provided to the client operating system in the form of software, and the guest operating system needs to be modified. The early xen is hypervirtualization.

The operating system-level virtualization kernel isolates resources from different processes by creating multiple virtual operating system instances (kernels and libraries), such as docker

The difference between virtual machine runner and docker runner

The traditional way is to achieve virtualization at the hardware level, which requires additional virtual machine management applications and virtual machine operating system layer. Docker container is virtualized at the operating system level, directly reusing the operating system of the local host, so it is more lightweight.

At this point, I believe you have a deeper understanding of the "brief introduction to docker". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report