Documentation ¶
Index ¶
- Constants
- func Client(address string) (*containerd.Client, error)
- func FuseoverlayfsSupported(root string) error
- func OverlaySupported(root string) error
- func PreloadImages(ctx context.Context, cfg *config.Node) error
- func Run(ctx context.Context, cfg *config.Node) error
- func SetupContainerdConfig(cfg *config.Node) error
- func StargzSupported(root string) error
- type HostConfigs
Constants ¶
const (
SELinuxContextType = "container_runtime_t"
)
Variables ¶
This section is empty.
Functions ¶
func FuseoverlayfsSupported ¶
func OverlaySupported ¶
func PreloadImages ¶
PreloadImages reads the contents of the agent images directory, and attempts to import into containerd any files found there. Supported compressed types are decompressed, and any .txt files are processed as a list of images that should be pre-pulled from remote registries. If configured, imported images are retagged as being pulled from additional registries.
func Run ¶
Run configures and starts containerd as a child process. Once it is up, images are preloaded or pulled from files found in the agent images directory.
func SetupContainerdConfig ¶
SetupContainerdConfig generates the containerd.toml, using a template combined with various runtime configurations and registry mirror settings provided by the administrator.
func StargzSupported ¶
Types ¶
type HostConfigs ¶
type HostConfigs map[string]templates.HostConfig