1.Docker是什么?

Docker官网是这样解释的:

Docker is the company driving the container movement and the only container platform provider to address every application across the hybrid cloud. Today’s businesses are under pressure to digitally transform but are constrained by existing applications and infrastructure while rationalizing an increasingly diverse portfolio of clouds, datacenters and application architectures. Docker enables true independence between applications and infrastructure and developers and IT ops to unlock their potential and creates a model for better collaboration and innovation.

Docker是推动容器运动的公司,它是唯一的容器平台提供者,能够处理混合云上的每一个应用.如今的商业面临着数字化转型的压力,然而在对日益增长的云,数据中心,应用架构的不同组合进行合理化的过程中却被现有应用和基础设施所束缚.Docker能够真正地实现应用和基础设施,开发人员和IT运营人员的独立,从而释放他们的潜力,创造一个更有合作性和创新性的模型.

百度百科上这样解释:是一种开源的应用容器引擎,可以让开发者打包他们的应用以及依赖包到一个可移植的容器中.相比于虚拟机,其资源利用率高,性能好,便捷.Docker完全使用沙箱机制,相互之间无任何接口.

 docker 并不是虚拟机, 它做的是 linux 的隔离.虚拟机在底层模拟出各种硬件,做不出原生的感觉.而docker是在软件层面给资源分组,性能无限接近原生,因为docker用的就是系统自己的进程.

docker的隔离技术源自于LXC(LinuX Container),Linux容器.LXC基于cgroup的namespace,chroot等.cgroup的全称是control group,是linux内核中本来就有的,它是一种资源管理机制.

新战场:https://blog.csdn.net/Stephen___Qin
原文地址:https://www.cnblogs.com/Stephen-Qin/p/8505574.html