OCI Open Container Initiative标准
Open Container Initiative(OCI)目前有2个标准:runtime-spec以及image-spec。OCI规定了images和runtime协议,只要实现了OCI的容器就可以实现其兼容性和可移植性。
看一下image-spec中的一句话:
The OCI Image Format partner project is the OCI Runtime Spec project. The Runtime Specification outlines how to run a "filesystem bundle" that is unpacked on disk. At a high-level an OCI implementation would download an OCI Image then unpack that image into an OCI Runtime filesystem bundle. At this point the OCI Runtime Bundle would be run by an OCI Runtime.
runtime-spec规定了如何run一个bundle,而images-spec规定了如何下载OCI镜像以及解压到bundle中。
bundle中的config.json的作用是:
The bundle contains an OCI configuration file where the builder can specify host-independent details such as which executable to launch and host-specific settings such as mount locations, hook paths, Linux namespaces and cgroups. Because the configuration includes host-specific settings, application bundle directories copied between two hosts may require configuration adjustments.
参考:
https://www.cnblogs.com/charlieroro/p/10176944.html
posted on 2021-11-23 13:21 MissSimple 阅读(488) 评论(0) 编辑 收藏 举报