package containerdexecutor
import "github.com/moby/buildkit/executor/containerdexecutor"
Index ¶
- func New(executorOpts ExecutorOptions) executor.Executor
- type ExecutorOptions
- type OnCreateRuntimer
- type RuntimeInfo
Functions ¶
func New ¶
func New(executorOpts ExecutorOptions) executor.Executor
New creates a new executor backed by connection to containerd API
Types ¶
type ExecutorOptions ¶
type ExecutorOptions struct { Client *containerd.Client Root string CgroupParent string NetworkProviders map[pb.NetMode]network.Provider DNSConfig *oci.DNSConfig ApparmorProfile string Selinux bool TraceSocket string Rootless bool Runtime *RuntimeInfo }
type OnCreateRuntimer ¶
type OnCreateRuntimer interface { // OnCreateRuntime is analogous to the createRuntime OCI hook. The // function is called after the container is created, before the user // process has been executed. The argument is the container PID in the // runtime namespace. OnCreateRuntime(pid uint32) error }
OnCreateRuntimer provides an alternative to OCI hooks for applying network configuration to a container. If the network.Provider returns a network.Namespace which also implements this interface, the containerd executor will run the callback at the appropriate point in the container lifecycle.
type RuntimeInfo ¶
Source Files ¶
- Version
- v0.18.2
- Published
- Dec 16, 2024
- Platform
- js/wasm
- Imports
- 29 packages
- Last checked
- 2 minutes ago –
Tools for package owners.