目录

Containerd解析(10) - Containerd Start

目录

概述

了解containerd的启动过程。

重点关注api接口 ContainersClientTasksClient的实现。

ContainersClient的实现类是:

1
2
3
4
5
6
// containerd/services/containers/local.go
type local struct {
   containers.Store
   db        *metadata.DB
   publisher events.Publisher
}

TasksClient的实现类是:

1
2
3
4
5
6
7
8
9
type local struct {
	runtimes   map[string]runtime.PlatformRuntime
	containers containers.Store
	store      content.Store
	publisher  events.Publisher

	monitor   runtime.TaskMonitor
	v2Runtime runtime.PlatformRuntime
}