基本流程
- Containerd 首先会通过exec的方式运行ShimV2,这个时候ShimV2会运行起来后,创建ttrpc的地址,然后返回给Containerd
API
pub struct CreateTaskRequest {
// message fields
pub id: ::std::string::String,
pub bundle: ::std::string::String,
pub rootfs: ::protobuf::RepeatedField<super::mount::Mount>,
pub terminal: bool,
pub stdin: ::std::string::String,
pub stdout: ::std::string::String,
pub stderr: ::std::string::String,
pub checkpoint: ::std::string::String,
pub parent_checkpoint: ::std::string::String,
pub options: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>,
// special fields
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
- 什么是shim? shim v1 和 shim v2的区别是什么?