OCI 标准
核心概念
OCI = Open Container Initiative
容器格式和运行时的开放标准
OCI 规范
| 规范 | 内容 |
|---|---|
| Runtime Spec | 如何运行容器 |
| Image Spec | 如何打包镜像 |
| Distribution Spec | 如何分发镜像 |
Image Spec
镜像 = manifest + config + layers
manifest: 描述镜像的层和配置
config: 容器配置(环境变量、入口点等)
layers: 文件系统层(tar.gz)
Runtime Spec
容器 = config.json + rootfs
config.json: 容器配置
rootfs: 根文件系统
小结
| 规范 | 说明 |
|---|---|
| Image Spec | 镜像格式 |
| Runtime Spec | 运行时行为 |
| Distribution Spec | 分发协议 |