Docker,它是什么,目的是什么 [英] Docker, what is it and what is the purpose

查看:113
本文介绍了Docker,它是什么,目的是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天前,我听说过Docker,并想谈一谈。

I've heard about Docker some days ago and wanted to go across.

但是实际上,我不知道这个容器的目的是什么?

But in fact, I don't know what is the purpose of this "container"?

什么是容器?

它可以代替专用于开发的虚拟机吗?

Can it replace a virtual machine dedicated to development?

简单地说,在公司中使用Docker的目的是什么?主要优势?

What is the purpose, in simple words, of using Docker in companies? The main advantage?

推荐答案

VM:例如,使用VM软件,可以在内部安装Ubuntu Windows。它们都将同时运行。这就像在操作系统中构建一台具有其核心组件(如CPU,RAM,磁盘,网卡等)的PC,然后将其组装起来就像是一台真正的PC。这样,虚拟PC便成为实际PC的来宾,该PC带有其操作系统(称为主机)。

VM: Using VM software, for example, Ubuntu can be installed inside a Windows. And they would both run at the same time. It is like building a PC, with its core components like CPU, RAM, Disks, Network Cards etc, within an operating system and assemble them to work as if it was a real PC. This way, the virtual PC becomes a "guest" inside an actual PC which with its operating system, which is called a host.

容器:与上面相同,但是它不使用整个操作系统,而是将虚拟OS的不必要组件削减为创建它的最小版本。这导致了LXC(Linux容器)的创建。它比VM计算机更快。

Container: It's same as above but instead of using an entire operating system, it cut down the "unnecessary" components of the virtual OS to create a minimal version of it. This lead to the creation of LXC (Linux Containers).It's faster than VM Machines.

Docker :Docker容器与虚拟机和容器不同,不需要或包含单独的操作系统。相反,它依靠 Linux内核的功能并使用资源隔离。

Docker的用途: 自动化软件容器内应用程序的部署以及Linux上操作系统级别虚拟化的自动化。它比标准容器轻巧,可以在几秒钟内启动。

Docker: A docker container, unlike a virtual machine and container, does not require or include a separate operating system. Instead, it relies on the Linux kernel's functionality and uses resource isolation.
Purpose of Docker: Its primary focus is to automate the deployment of applications inside software containers and the automation of operating system level virtualization on Linux. It's more lightweight than standard Containers and boots up in seconds.

(请注意,在Docker的情况下,不需要Guest OS)

这篇关于Docker,它是什么,目的是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆