ybaidukuai 发表于 2015-4-18 08:29:47

docker 基本概念

image
操作系统 应用
registeries
image 的远程仓库
containers
类似一个目录,一个容器包含了 应用运行所需要的一切东西,
容器之间互相独立

image包换一系列的层,使用Union file systems把这些层组合在一起,
对image的修改,只用修改层,不用重新构建
Every image starts from a base image
Dockerfile
运行命令
增加文件 目录
设置环境变量
设置启动进程
....
###How does a container work?
1 pull image
2 create container
3 allocate filesystem and mounts a read-write layer
4 allocate a network
5 set up ip address
6 execute a proecess that you specify
7 captures log
  
页: [1]
查看完整版本: docker 基本概念