Docker入门与实战系列:什么是Docker

Docker入门与实战——《Docker ABC》电子书 https://github.com/gudaoxuri/Docker_ABC

4. 什么是Docker

4.1. 权威解释

Docker is an open platform for building, shipping and running distributed applications. It gives programmers, development teams and operations engineers the common toolbox they need to take advantage of the distributed and networked nature of modern applications.

— docker.com

这是来自Docker官网的说明,其中有两层意思:

  1. docker可以干什么?

    它可以用于编译(building)、分发(shipping)、运行(running)分布式应用。

  2. 谁用docker?

    程序员(programmers)、开发团队(development teams)、运维工程师(operations engineers)。

4.2. 通俗地说…

这货就是精简版的VM虚拟机,在牺牲了一定的资源隔离性的情况下实现了极小的资源占用、极快地启动/停止,它可以方便地共享/获取公共应用(镜像),通过Dockfile更可以方便地构建自己的应用(镜像)。

延伸阅读: Docker与VM的区别

5. 核心概念

在正式使用Docker前我们先简述几个核心概念。

Image(镜像)

与我们熟知的Windows镜像(ISO或安装光盘)类似,可以理解为一份特定应用的Copy,它是只读的。

Container(容器)

镜像是不能直接运行的,只有安装后才能使用,容器就是这个运行镜像后的实例,我们可以修改实例。

Dockerfile

用于制作镜像的元文件,有点类似Mavenpom.xml文件,可以通过它构建一个镜像。

hub.docker.com

镜像发布共享的地方,与search.maven.org类似。

它们之间的关系如下:

Docker入门与实战系列:什么是Docker

你可能感兴趣的:(docker)