当然,今天咱聊的这个技术出现了很长时间了已经。以下是百度百科的简介:
1、百科简介。
是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口。(其实,现在还可以在Mac、Windows server 2016上)
2、官网介绍:
Docker enables developers and IT admins to build, ship and run any application, anywhere。
图示:
3、背景:
Stop wasting hours setting up developer environments, spinning up new instances, and making copies of production code to run locally. With Docker, you simply take copies of your live environment and run them on any new endpoint running a Docker engine.
The isolation capabilities of Docker containers free developers from constraints: they can use the best language and tools for their application services without worrying about causing internal tooling conflicts.
Packaging an application in a container with its configs and dependencies guarantees that the application will always work as designed in any environment: locally, on another machine, in test or production. No more worries about having to install the same configurations into different environments.
4、做什么?
一言以蔽之:Build once,Run anywhere,Configure once,Run anything
build:Docker allows you to compose your application from microservices, without worry about inconsistencies between development and production environments , and without locking into any platform or language.
ship:Docker lets you design the entire cycle of application development,testing and distribution ,and mange it with a consistent user interface.
run:Docker offers you the ability to deploy scalable services, securely and relably, on a wide variety of platforms.
5、简单原理?
一个Docker容器包含了一个操作系统、用户添加的文件和元数据(meta-data)。我们可以看到,每个容器都是从镜像建立的。镜像告诉Docker容器内包含了什么,当容器启动时运行什么程序,还有许多配置数据。Docker镜像是只读的。当Docker运行一个从镜像建立的容器,它会在镜像顶部添加一个可读写的层,应用程序可以在这里运行。
6、Docker 和 虚拟机的对比:
Virtual machines include the application, the necessary binaries and libraries, and an entire guest operating system -- all of which can amount to tens of GBs.
Containers include the application and all of its dependencies --but share the kernel with other containers, running as isolated processes in user space on the host operating system. Docker containers are not tied to any specific infrastructure: they run on any computer, on any infrastructure, and in any cloud.
小结:
现在,渐渐喜欢上了,直接在英文官网上去学习一些东西。尤其是新的技术,介绍很清楚!让人一看就知道这是要干什么的!慢慢的