Application in growing Numbers are beginning to container and on the cloud, there may be some people direct contact is k8s (Kubernetes) and the concept of the operation, but figuring out the container technology of some of the evolutionary process, is a very interesting thing, at the same time can also strengthen our deep understanding of the technology of the container and specific scenarios using what kind of technology.
Docker vs Virtual machine
The development of KVM technology has freed the waste of excessive resources on a single physical server. Vm resources are independent of each other, and application deployment is not affected. However, the disadvantages are that VMS occupy too many resources, and security patches need to be updated together, which is difficult to manage. Container Docker is designed to solve this dilemma. Under the condition of low resource consumption, it is convenient to deploy applications with independent resources and dependencies, so as to achieve rapid deployment. The hierarchy difference between them is shown here:
Second, docker-compose is born
The popularity of containerization also raises the question of how to efficiently deploy and manage these images. Because relatively large application services often need multiple components to work together to run properly, which poses a challenge to single Docker container deployment. Docker-compose, like the octopus below, can build and deploy multiple containers at the same time.
K8s (Kubernetes) vs Docker Swarm
The application of Docker and Docker-compose makes full use of the performance of a single physical server, and enables rapid and continuous delivery. But how do you migrate the container image of machine A in the figure below to another server and how do you load balance the shunt if you encounter high concurrency?
Application scenarios and resource occupation of several technologies
technology | Application scenarios | Resource usage |
---|---|---|
Docker | Single-node deployment Simple applications | low |
Docker-Compose | Deploy applications on a single machine or a few machines | low |
k8s | Cluster deployment of high availability applications | high |
Original article, welcome to reprint, reprint please note: ifish.site
Author: JaydenZhou
Reference Documents:
Ifish. Site /docker_01.h…
Docker baidu encyclopedia baike.baidu.com/item/Docker…
Full of dry goods! Ten minutes read Docker and K8S my.oschina.net/jamesview/b…
The use of the Docker and Docker – Compose www.jianshu.com/p/ca1623ac7…